Problems with <time.h> and <sys/time.h>
Mark Kettenis
kettenis@wins.uva.nl
Wed Jan 31 04:05:00 GMT 2001
I think the attached patch is necessary. At least it fixes a
compilation problem for the Hurd, where the sequence:
#include <sys/resource.h>
#include <sys/time.h>
#include <time.h>
wouldn't define CLOCKS_PER_SEC.
Mark
2001-01-31 Mark Kettenis <kettenis@gnu.org>
* misc/sys/select.h: Include <bits/time.h> instead of <sys/time.h>
to get definition of `struct timeval'.
Index: misc/sys/select.h
===================================================================
RCS file: /cvs/glibc/libc/misc/sys/select.h,v
retrieving revision 1.16
diff -u -p -r1.16 select.h
--- misc/sys/select.h 2001/01/27 19:22:55 1.16
+++ misc/sys/select.h 2001/01/31 12:02:14
@@ -42,7 +42,7 @@ typedef __sigset_t sigset_t;
#define __need_timespec
#include <time.h>
#define __need_timeval
-#include <sys/time.h>
+#include <bits/time.h>
/* The fd_set member is required to be an array of longs. */
More information about the Libc-hacker
mailing list