Fix clock_gettime includes
Daniel Jacobowitz
drow@false.org
Mon May 9 14:20:00 GMT 2005
Two of the POSIX clocks files are missing an include of <time.h> to get
clockid_t.
On some platforms (i386, x86_64, ia64), <sysdep.h> includes <tls.h>, which
drags in a whole lot of other headers including <time.h>, so this problem
doesn't show up. ARM needs this to build.
--
Daniel Jacobowitz
CodeSourcery, LLC
2005-05-09 Daniel Jacobowitz <dan@codesourcery.com>
* sysdeps/unix/sysv/linux/clock_getres.c: Include <time.h>.
* sysdeps/unix/sysv/linux/clock_gettime.c: Likewise.
Index: glibc/sysdeps/unix/sysv/linux/clock_getres.c
===================================================================
--- glibc.orig/sysdeps/unix/sysv/linux/clock_getres.c 2005-04-27 04:01:38.000000000 -0400
+++ glibc/sysdeps/unix/sysv/linux/clock_getres.c 2005-05-09 09:08:11.114796778 -0400
@@ -19,6 +19,7 @@
#include <sysdep.h>
#include <errno.h>
+#include <time.h>
#include "kernel-posix-cpu-timers.h"
#include "kernel-features.h"
Index: glibc/sysdeps/unix/sysv/linux/clock_gettime.c
===================================================================
--- glibc.orig/sysdeps/unix/sysv/linux/clock_gettime.c 2005-04-27 04:01:39.000000000 -0400
+++ glibc/sysdeps/unix/sysv/linux/clock_gettime.c 2005-05-09 09:08:11.882613685 -0400
@@ -19,6 +19,7 @@
#include <sysdep.h>
#include <errno.h>
+#include <time.h>
#include "kernel-posix-cpu-timers.h"
#include "kernel-features.h"
More information about the Libc-alpha
mailing list