repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some more configure checks for headers
[deb_libnfs.git]
/
lib
/
socket.c
diff --git
a/lib/socket.c
b/lib/socket.c
index 653853549e45b29627eb5be44c631460679da098..733f1f4768e8a0b41c9a51a0903d73e1d08539c0 100644
(file)
--- a/
lib/socket.c
+++ b/
lib/socket.c
@@
-26,7
+26,6
@@
#include "win32_compat.h"
#else
#include <arpa/inet.h>
#include "win32_compat.h"
#else
#include <arpa/inet.h>
-#include <netdb.h>
#endif/*WIN32*/
#ifdef HAVE_POLL_H
#endif/*WIN32*/
#ifdef HAVE_POLL_H
@@
-45,18
+44,24
@@
#include <sys/socket.h>
#endif
#include <sys/socket.h>
#endif
-#include <stdio.h>
-#include <stdlib.h>
-#include <assert.h>
-#include <fcntl.h>
-#include <string.h>
-#include <errno.h>
+#ifdef HAVE_NETDB_H
+#include <netdb.h>
+#endif
+
#ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h>
#endif
#ifdef HAVE_SYS_FILIO_H
#include <sys/filio.h>
#endif
+
#ifdef HAVE_SYS_SOCKIO_H
#include <sys/sockio.h>
#endif
#ifdef HAVE_SYS_SOCKIO_H
#include <sys/sockio.h>
#endif
+
+#include <stdio.h>
+#include <stdlib.h>
+#include <assert.h>
+#include <fcntl.h>
+#include <string.h>
+#include <errno.h>
#include <sys/types.h>
#include "libnfs-zdr.h"
#include "libnfs.h"
#include <sys/types.h>
#include "libnfs-zdr.h"
#include "libnfs.h"