socket.c: we need netinet/in.h on some platforms
[deb_libnfs.git] / lib / socket.c
index 3f7f89f90c9a368dc5ff6c48c0ab87f790d4e096..1c1853c7cd7989cb84ea3f52774f2e0c6782b4a1 100644 (file)
 #include <sys/socket.h>
 #endif
 
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+
 #ifdef HAVE_NETINET_TCP_H
 #include <netinet/tcp.h>
 #endif
@@ -68,6 +72,7 @@
 #include <fcntl.h>
 #include <string.h>
 #include <errno.h>
+#include <time.h>
 #include <sys/types.h>
 #include "libnfs-zdr.h"
 #include "libnfs.h"