changeset 7298:6948138d9f3a

* nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid compilation failure (due to use of pid_t in latter) on NetBSD 1.6. Reported by Nelson H. F. Beebe.
author Jim Meyering <jim@meyering.net>
date Tue, 12 Sep 2006 10:13:20 +0000
parents be4aad0241ea
children d9040941c9dd
files lib/ChangeLog lib/nanosleep.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,9 @@
+2006-09-12  Jim Meyering  <jim@meyering.net>
+
+	* nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
+	compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
+	Reported by Nelson H. F. Beebe.
+
 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
 
 	* argp-help.c (argp_doc): Make sure NULL is not passed to
@@ -27,7 +33,7 @@
 	and translate the two parts separately, instead of feeding
 	the whole string to gettext.  This allows to exclude
 	'\v' from the strings visible to the translator by writing doc
-	strings as N_("..") "\v" N_("..").  
+	strings as N_("..") "\v" N_("..").
 
 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
 
--- a/lib/nanosleep.c
+++ b/lib/nanosleep.c
@@ -29,10 +29,10 @@
 
 #include <stdbool.h>
 #include <stdio.h>
+#include <sys/types.h>
 #if HAVE_SYS_SELECT_H
 # include <sys/select.h>
 #endif
-#include <sys/types.h>
 #include <signal.h>
 
 #if TIME_WITH_SYS_TIME