r53: Move the #include <cliserv.h> to the top, to allow configure's
authoryoe <yoe>
Sun, 4 Apr 2004 11:04:52 +0000 (11:04 +0000)
committeryoe <yoe>
Sun, 4 Apr 2004 11:04:52 +0000 (11:04 +0000)
--enable-lfs to work.

nbd-server.c

index 69a5d8d..bc4b101 100644 (file)
  *     <wouter@debian.org>
  */
 
+/* used in cliserv.h, so must come first */
+#define MY_NAME "nbd_server"
+/* Includes LFS defines, which defines behaviours of some of the following
+ * headers, so must come before those */
+#include "cliserv.h"
+
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <strings.h>
 #include <dirent.h>
 
-/* used in cliserv.h, so must come first */
-#define MY_NAME "nbd_server"
-#include "cliserv.h"
-
 /** how much space for child PIDs we have by default. Dynamically
    allocated, and will be realloc()ed if out of space, so this should
    probably be fair for most situations. */