summaryrefslogtreecommitdiff
path: root/source3/lib/replace/system/network.h
diff options
context:
space:
mode:
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