This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Problems with <time.h> and <sys/time.h>


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.  */

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