diff options
author | Jeremy Allison <jra@samba.org> | 1997-12-23 07:15:59 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1997-12-23 07:15:59 +0000 |
commit | 3c9292505914e2119fa7b1973c9fbbe1742262b2 (patch) | |
tree | 003381df9d9a13fabdbabbc630d7b8c6572d357c /source/lib | |
parent | f5dfc8913bcce71f14b59c5ed8415b0f54b58e6c (diff) | |
download | samba-3c9292505914e2119fa7b1973c9fbbe1742262b2.tar.gz samba-3c9292505914e2119fa7b1973c9fbbe1742262b2.tar.xz samba-3c9292505914e2119fa7b1973c9fbbe1742262b2.zip |
Fixes to compile under OpenBSD from "Todd T. Fries" <toddf@acm.org>
Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r-- | source/lib/interface.c | 2 | ||||
-rw-r--r-- | source/lib/util.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/interface.c b/source/lib/interface.c index 0008ad889df..95c0b9d53cb 100644 --- a/source/lib/interface.c +++ b/source/lib/interface.c @@ -155,7 +155,7 @@ static void get_broadcast(struct in_addr *if_ipaddr, } } } -#elif defined(__FreeBSD__) || defined(NETBSD) || defined(AMIGA) || defined(_AIX41) +#elif defined(__FreeBSD__) || defined(NETBSD) || defined(AMIGA) || defined(_AIX41) || defined(__OpenBSD__) ifc.ifc_len = sizeof(buff); ifc.ifc_buf = buff; if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) { diff --git a/source/lib/util.c b/source/lib/util.c index a6b5d980f90..125db2ed1e6 100644 --- a/source/lib/util.c +++ b/source/lib/util.c @@ -3305,7 +3305,7 @@ int open_socket_in(int type, int port, int dlevel,uint32 socket_addr) bzero((char *)&sock,sizeof(sock)); memcpy((char *)&sock.sin_addr,(char *)hp->h_addr, hp->h_length); -#if defined(__FreeBSD__) || defined(NETBSD) /* XXX not the right ifdef */ +#if defined(__FreeBSD__) || defined(NETBSD) || defined(__OpenBSD__) /* XXX not the right ifdef */ sock.sin_len = sizeof(sock); #endif sock.sin_port = htons( port ); |