summaryrefslogtreecommitdiff
path: root/source3/lib/replace/system/network.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-10-04 17:20:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:31:10 -0500
commit941544a9514aaae89268bc9d689705ad0724119e (patch)
tree1f75125cb1226f2d3fd0031e5dc1e056c6e896e7 /source3/lib/replace/system/network.h
parent5a3dcd8dd602dd59f3bfb1c397f80a6be3755df3 (diff)
downloadsamba-941544a9514aaae89268bc9d689705ad0724119e.tar.gz
samba-941544a9514aaae89268bc9d689705ad0724119e.tar.bz2
samba-941544a9514aaae89268bc9d689705ad0724119e.zip
r25505: Add a replacement (IPv4 only) implementation of getaddrinfo/freeaddrinfo
under the 2 clause *BSD license for future use in IPv6 code. Original code was from PostgreSQL and I've maintained their license even though I've rewritten large parts of it (I probably should donate this back to them). Jeremy. (This used to be commit 760d993340a966269d71acfb7a6b5e4d3776ac5d)
Diffstat (limited to 'source3/lib/replace/system/network.h')
-rw-r--r--source3/lib/replace/system/network.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/lib/replace/system/network.h b/source3/lib/replace/system/network.h
index d5d2be068e..a09d3bb01b 100644
--- a/source3/lib/replace/system/network.h
+++ b/source3/lib/replace/system/network.h
@@ -126,9 +126,13 @@ typedef int socklen_t;
typedef unsigned short int sa_family_t;
#endif
-#ifndef HAVE_SOCKADDR_STORAGE
+#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
#define sockaddr_storage sockaddr_in
#define ss_family sin_family
#endif
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX 256
+#endif
+
#endif