dump1090/compat/clock_nanosleep/clock_nanosleep.h
2016-03-31 13:25:32 -04:00

25 lines
495 B
C

#ifndef CLOCK_NANOSLEEP_H
#define CLOCK_NANOSLEEP_H
#ifndef _CLOCK_T_DEFINED_
#define _CLOCK_T_DEFINED_
typedef enum
{
CLOCK_REALTIME,
CLOCK_MONOTONIC,
CLOCK_PROCESS_CPUTIME_ID,
CLOCK_THREAD_CPUTIME_ID
} clockid_t;
#endif // _CLOCK_T_DEFINED_
#ifndef TIMER_ABSTIME
#define TIMER_ABSTIME 1
#endif // TIMER_ABSTIME
struct timespec;
int clock_nanosleep (clockid_t id, int flags, const struct timespec *ts,
struct timespec *ots);
#endif //CLOCK_NANOSLEEP_H