summaryrefslogtreecommitdiff
path: root/source3/lib/replace/system
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-03 19:12:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:08 -0500
commit334b288831c1730cb88fb431f684b9062e139efd (patch)
tree9ca090d479eb5d527fb1a396740a0f91ce73fc72 /source3/lib/replace/system
parent5d552214e69acbf9863624f4eed6ae57b7bf1f14 (diff)
downloadsamba-334b288831c1730cb88fb431f684b9062e139efd.tar.gz
samba-334b288831c1730cb88fb431f684b9062e139efd.tar.bz2
samba-334b288831c1730cb88fb431f684b9062e139efd.zip
r25487: Try fix the build - fix socklen_t and sa_family_t.
Jeremy. (This used to be commit 2cab82563409eca79ac5f518a3dcb8cdbdcded7e)
Diffstat (limited to 'source3/lib/replace/system')
-rw-r--r--source3/lib/replace/system/network.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/lib/replace/system/network.h b/source3/lib/replace/system/network.h
index 1b442dd602..fc21a3e99a 100644
--- a/source3/lib/replace/system/network.h
+++ b/source3/lib/replace/system/network.h
@@ -118,8 +118,16 @@ char *rep_inet_ntoa(struct in_addr ip);
#define INET6_ADDRSTRLEN 46
#endif
+#ifndef HAVE_SOCKLEN_T
+typedef int socklen_t;
+#endif
+
#ifndef HAVE_SA_FAMILY_T
typedef unsigned short int sa_family_t;
#endif
+#ifndef HAVE_SOCKADDR_STORAGE
+#define sockaddr_storage sockaddr
+#endif
+
#endif