summaryrefslogtreecommitdiff
path: root/source4/lib/replace/system
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-12-20 15:59:39 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 06:28:49 +0100
commit6afef7d624fbf734d93ebfe95689a282b202aa3c (patch)
treef1b39842e96df57a624b355077c4fcdca8b64d9c /source4/lib/replace/system
parent1ae762d3bc924245aa96378929a9a048d385a61e (diff)
downloadsamba-6afef7d624fbf734d93ebfe95689a282b202aa3c.tar.gz
samba-6afef7d624fbf734d93ebfe95689a282b202aa3c.tar.bz2
samba-6afef7d624fbf734d93ebfe95689a282b202aa3c.zip
r26550: libreplace: fallback to __ss_family of struct sockaddr_storage
metze (This used to be commit 11bdc9bed80b9842ac1ab8f22509a5d191cddc91)
Diffstat (limited to 'source4/lib/replace/system')
-rw-r--r--source4/lib/replace/system/network.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h
index f72b233712..e2fad5f686 100644
--- a/source4/lib/replace/system/network.h
+++ b/source4/lib/replace/system/network.h
@@ -249,9 +249,18 @@ typedef unsigned short int sa_family_t;
#ifdef HAVE_STRUCT_SOCKADDR_IN6
#define sockaddr_storage sockaddr_in6
#define ss_family sin6_family
+#define HAVE_SS_FAMILY 1
#else
#define sockaddr_storage sockaddr_in
#define ss_family sin_family
+#define HAVE_SS_FAMILY 1
+#endif
+#endif
+
+#ifndef HAVE_SS_FAMILY
+#ifdef HAVE___SS_FAMILY
+#define ss_family __ss_family
+#define HAVE_SS_FAMILY 1
#endif
#endif