summaryrefslogtreecommitdiff
path: root/socket.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2011-07-22 11:17:57 -0700
committerWayne Davison <wayned@samba.org>2011-07-22 11:17:57 -0700
commit0a77adee0b280ab60bcf2bb8d8674708a906d9e2 (patch)
treecd534da1e4a7bf7f3e0e5f6521972705c0feed54 /socket.c
parent0a04a80d9f3caeffce4d7daddf5730034602073d (diff)
downloadrsync-0a77adee0b280ab60bcf2bb8d8674708a906d9e2.tar.gz
Fix Minix build errors. Fixes bug 8313.
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/socket.c b/socket.c
index b6f29af0..0f596e0d 100644
--- a/socket.c
+++ b/socket.c
@@ -26,8 +26,12 @@
#include "rsync.h"
#include "itypes.h"
+#ifdef HAVE_NETINET_IN_SYSTM_H
#include <netinet/in_systm.h>
+#endif
+#ifdef HAVE_NETINET_IP_H
#include <netinet/ip.h>
+#endif
#include <netinet/tcp.h>
extern char *bind_address;
@@ -642,7 +646,9 @@ struct
} socket_options[] = {
{"SO_KEEPALIVE", SOL_SOCKET, SO_KEEPALIVE, 0, OPT_BOOL},
{"SO_REUSEADDR", SOL_SOCKET, SO_REUSEADDR, 0, OPT_BOOL},
+#ifdef SO_BROADCAST
{"SO_BROADCAST", SOL_SOCKET, SO_BROADCAST, 0, OPT_BOOL},
+#endif
#ifdef TCP_NODELAY
{"TCP_NODELAY", IPPROTO_TCP, TCP_NODELAY, 0, OPT_BOOL},
#endif