summaryrefslogtreecommitdiff
path: root/time/bits/types/struct_itimerspec.h
diff options
context:
space:
mode:
Diffstat (limited to 'time/bits/types/struct_itimerspec.h')
-rw-r--r--time/bits/types/struct_itimerspec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/time/bits/types/struct_itimerspec.h b/time/bits/types/struct_itimerspec.h
index d36295a830..1e4ab51994 100644
--- a/time/bits/types/struct_itimerspec.h
+++ b/time/bits/types/struct_itimerspec.h
@@ -5,11 +5,17 @@
#include <bits/types/struct_timespec.h>
#include <bits/types/struct_timespec64.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 timer start values and intervals. */
struct itimerspec
{
struct timespec it_interval;
struct timespec it_value;
};
+#else
+# define itimerspec __itimerspec64
+#endif
#endif