diff options
author | Wayne Davison <wayned@samba.org> | 2011-07-22 11:17:57 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2011-07-22 11:17:57 -0700 |
commit | 0a77adee0b280ab60bcf2bb8d8674708a906d9e2 (patch) | |
tree | cd534da1e4a7bf7f3e0e5f6521972705c0feed54 /socket.c | |
parent | 0a04a80d9f3caeffce4d7daddf5730034602073d (diff) | |
download | rsync-0a77adee0b280ab60bcf2bb8d8674708a906d9e2.tar.gz rsync-0a77adee0b280ab60bcf2bb8d8674708a906d9e2.tar.bz2 rsync-0a77adee0b280ab60bcf2bb8d8674708a906d9e2.zip |
Fix Minix build errors. Fixes bug 8313.
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |