1c80d1b784
Reattach the licenses for the compat stuff to the source. Only build/link the compat stuff when it's needed. Rename compat/util.h so it's not confused with util.h. Move all the platform specific defines inside compat/compat.h.
25 lines
471 B
C
25 lines
471 B
C
#ifndef CLOCK_NANOSLEEP_H
|
|
#define CLOCK_NANOSLEEP_H
|
|
|
|
#ifndef CLOCKID_T
|
|
#define CLOCKID_T
|
|
typedef enum
|
|
{
|
|
CLOCK_REALTIME,
|
|
CLOCK_MONOTONIC,
|
|
CLOCK_PROCESS_CPUTIME_ID,
|
|
CLOCK_THREAD_CPUTIME_ID
|
|
} clockid_t;
|
|
#endif // CLOCKID_T
|
|
|
|
#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
|