This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[glibc] Include <kernel-features.h> explicitly in Linux clock_settime.c


https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e8ac1f71c8547a1dd6cd0c7133070e2219070d8e

commit e8ac1f71c8547a1dd6cd0c7133070e2219070d8e
Author: Lukasz Majewski <lukma@denx.de>
Date:   Fri Oct 18 11:33:59 2019 +0200

    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.

Diff:
---
 sysdeps/unix/sysv/linux/clock_settime.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sysdeps/unix/sysv/linux/clock_settime.c b/sysdeps/unix/sysv/linux/clock_settime.c
index fb48de5..54999d3 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]