Skip to content
Snippets Groups Projects
config.h 351 B
Newer Older
  • Learn to ignore specific revisions
  • Micah Elizabeth Scott's avatar
    Micah Elizabeth Scott committed
    #ifndef TIMESPEC_TO_TIMEVAL
    #define TIMESPEC_TO_TIMEVAL(tv, ts)                                     \
            do {                                                            \
                    (tv)->tv_sec = (ts)->tv_sec;                            \
                    (tv)->tv_usec = (ts)->tv_nsec / 1000;                   \
            } while (0)
    #endif