include sys/socket.h if possible (this should make rsync compile
authorAndrew Tridgell <tridge@samba.org>
Mon, 15 Dec 1997 16:27:04 +0000 (16:27 +0000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 15 Dec 1997 16:27:04 +0000 (16:27 +0000)
cleanly on SCO)

configure.in
rsync.h

index 167f85b..ce1b9e3 100644 (file)
@@ -15,7 +15,7 @@ AC_HEADER_TIME
 AC_HEADER_SYS_WAIT
 AC_CHECK_HEADERS(sys/fcntl.h sys/select.h fcntl.h sys/time.h sys/unistd.h unistd.h utime.h grp.h)
 AC_CHECK_HEADERS(compat.h sys/param.h ctype.h sys/wait.h sys/ioctl.h)
-AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h sys/mode.h)
+AC_CHECK_HEADERS(sys/filio.h string.h stdlib.h sys/socket.h sys/mode.h)
 
 AC_CHECK_SIZEOF(int)
 AC_CHECK_SIZEOF(long)
diff --git a/rsync.h b/rsync.h
index eb3c01b..9790c7c 100644 (file)
--- a/rsync.h
+++ b/rsync.h
 #include <stdlib.h>
 #endif
 
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
 #ifdef HAVE_STRING_H
 #include <string.h>
 #endif