A patch for time/time.h

H.J. Lu hjl@lucon.org
Sat Oct 24 17:58:00 GMT 1998


I added __USE_POSIX4 for POSIX.4.

-- 
H.J. Lu (hjl@gnu.org)
---
Sat Oct 24 17:56:44 1998  H.J. Lu  <hjl@gnu.org>

	* time/time.h (timespec): Protect with __USE_POSIX4 instead of
	__USE_POSIX.
	(nanosleep): Protect with __USE_POSIX4 instead of
	__USE_POSIX199309.

Index: time/time.h
===================================================================
RCS file: /home/work/cvs/gnu/glibc/time/time.h,v
retrieving revision 1.1.1.9
diff -u -r1.1.1.9 time.h
--- time.h	1998/08/11 22:35:03	1.1.1.9
+++ time.h	1998/10/23 23:29:57
@@ -80,7 +80,7 @@
 
 
 #if !defined __timespec_defined && \
-    ((defined _TIME_H && defined __USE_POSIX) || defined __need_timespec)
+    ((defined _TIME_H && defined __USE_POSIX4) || defined __need_timespec)
 # define __timespec_defined	1
 
 /* POSIX.4 structure for a time value.  This is like a `struct timeval' but
@@ -292,7 +292,7 @@
 # endif
 
 
-# ifdef __USE_POSIX199309
+# ifdef __USE_POSIX4
 /* Pause execution for a number of nanoseconds.  */
 extern int nanosleep __P ((__const struct timespec *__requested_time,
 			   struct timespec *__remaining));



More information about the Libc-hacker mailing list