(timeval): Protect with __need_timeval.
authordrepper <drepper>
Sun, 25 Oct 1998 09:09:00 +0000 (09:09 +0000)
committerdrepper <drepper>
Sun, 25 Oct 1998 09:09:00 +0000 (09:09 +0000)
sysdeps/unix/sysv/linux/bits/time.h

index 3c1b27a..274d616 100644 (file)
 # endif        /* bits/time.h */
 #endif
 
-#ifndef _STRUCT_TIMEVAL
-# define _STRUCT_TIMEVAL       1
-# include <bits/types.h>
+#ifdef __need_timeval 
+# undef __need_timeval
+# ifndef _STRUCT_TIMEVAL
+#  define _STRUCT_TIMEVAL      1
+#  include <bits/types.h>
 
 /* A time value that is accurate to the nearest
    microsecond but also has a range of years.  */
@@ -53,4 +55,5 @@ struct timeval
     __time_t tv_sec;           /* Seconds.  */
     __time_t tv_usec;          /* Microseconds.  */
   };
-#endif /* struct timeval */
+# endif        /* struct timeval */
+#endif /* need timeval */