Samuel Tardieu | 2 Jan 2004 17:43
Picon

Move <sys/types.h> up

FreeBSD 5.x (and other systems) require <sys/types.h> to be included
early (before other includes).

The following patch fixes that.

--- orig/activutil.c
+++ mod/activutil.c
 <at>  <at>  -44,6 +44,7  <at>  <at> 
 #endif

 #include <fcntl.h>
+#include <sys/types.h>
 #include <sys/uio.h>
 #include <sys/param.h>
 #include <sys/socket.h>
 <at>  <at>  -59,7 +60,6  <at>  <at> 
 #include <stdio.h>
 #include <string.h>
 #include <sys/stat.h>
-#include <sys/types.h>
 #include <time.h>
 #include <unistd.h>
 #include <dirent.h>

--- orig/nntputil.c
+++ mod/nntputil.c
 <at>  <at>  -44,6 +44,7  <at>  <at> 
 #endif

 #include <fcntl.h>
(Continue reading)


Gmane