blob: a187831a88bc42e5c9751665097718a44e2f735c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef __timespec_defined
#define __timespec_defined 1
#include <bits/types.h>
/* Use the original definition for 64-bit arches
or when 64-bit-time by default has *not* been requested */
#if __WORDSIZE > 32 || ! defined(__USE_TIME_BITS64)
/* POSIX.1b structure for a time value. This is like a `struct timeval' but
has nanoseconds instead of microseconds. */
struct timespec
{
__time_t tv_sec; /* Seconds. */
__syscall_slong_t tv_nsec; /* Nanoseconds. */
};
#else
/* Use the 64-bit-time timespec by default */
#define timespec __timespec64
# endif
#endif
|