From fdd71e177db1a15f46d3d3c92c154a1ddc07f9fd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 15 Dec 1997 16:27:04 +0000 Subject: [PATCH] include sys/socket.h if possible (this should make rsync compile cleanly on SCO) --- configure.in | 2 +- rsync.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index 167f85bb..ce1b9e3a 100644 --- a/configure.in +++ b/configure.in @@ -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 eb3c01b2..9790c7ce 100644 --- a/rsync.h +++ b/rsync.h @@ -75,6 +75,10 @@ #include #endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif + #ifdef HAVE_STRING_H #include #endif -- 2.34.1