include sys/socket.h if possible (this should make rsync compile
[rsync/rsync.git] / rsync.h
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