about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/clock_settime.c
diff options
context:
space:
mode:
authorLukasz Majewski <lukma@denx.de>2019-10-18 11:33:59 +0200
committerLukasz Majewski <lukma@denx.de>2019-10-20 16:52:43 +0200
commite8ac1f71c8547a1dd6cd0c7133070e2219070d8e (patch)
tree69b896c10a040e0db01082c76ffc4e8ade071000 /sysdeps/unix/sysv/linux/clock_settime.c
parentef21bd2d8c6805c0c186a01f7c5039189f51b8c4 (diff)
downloadglibc-e8ac1f71c8547a1dd6cd0c7133070e2219070d8e.tar.gz
glibc-e8ac1f71c8547a1dd6cd0c7133070e2219070d8e.tar.xz
glibc-e8ac1f71c8547a1dd6cd0c7133070e2219070d8e.zip
Include <kernel-features.h> explicitly in Linux clock_settime.c
The rewritten clock_settime code (which now supports 64 bit time on systems
with __WORDSIZE == 32)  for Linux now relies on the
__ASSUME_TIME64_SYSCALLS flag set.

Lets explicitly include the header file where it is defined to avoid
any indirect inclusion (which may pose some unwanted API definitions).

Tested with scripts/build-many-glibcs.py script.
Diffstat (limited to 'sysdeps/unix/sysv/linux/clock_settime.c')
-rw-r--r--sysdeps/unix/sysv/linux/clock_settime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/clock_settime.c b/sysdeps/unix/sysv/linux/clock_settime.c
index fb48de5d50..54999d3008 100644
--- a/sysdeps/unix/sysv/linux/clock_settime.c
+++ b/sysdeps/unix/sysv/linux/clock_settime.c
@@ -19,6 +19,7 @@
 #include <sysdep.h>
 #include <time.h>
 #include <shlib-compat.h>
+#include <kernel-features.h>
 
 /* Set CLOCK to value TP.  */
 int