I installed the following to fix a porting problem with OpenBSD 3.4.
Its <time.h> declares 'struct timespec' but does not define it,
i.e., it says only "struct timespec;".  (That's pretty usesless, hun?)

2005-07-01  Paul Eggert  <[EMAIL PROTECTED]>

        * xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
        declares only 'struct timespec;' (!).

Index: lib/xnanosleep.c
===================================================================
RCS file: /cvsroot/gnulib/gnulib/lib/xnanosleep.c,v
retrieving revision 1.5
diff -p -u -r1.5 xnanosleep.c
--- lib/xnanosleep.c    14 May 2005 06:03:58 -0000      1.5
+++ lib/xnanosleep.c    1 Jul 2005 17:23:52 -0000
@@ -33,6 +33,7 @@
 #include <time.h>
 
 #include "intprops.h"
+#include "timespec.h"
 
 #ifndef TIME_T_MAX
 # define TIME_T_MAX TYPE_MAXIMUM (time_t)


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to