summaryrefslogtreecommitdiff
path: root/time/bits/types/struct_timeval.h
blob: e710b3786c564e1ce6d549a733693ca6804a2ad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef __timeval_defined
#define __timeval_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)
/* A time value that is accurate to the nearest
   microsecond but also has a range of years.  */
struct timeval
{
  __time_t tv_sec;		/* Seconds.  */
  __suseconds_t tv_usec;	/* Microseconds.  */
};
# else
/* Use the 64-bit-time timespec by default */
# define timeval __timeval64
# endif

#endif