summaryrefslogtreecommitdiff
path: root/source4/include/system/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'source4/include/system/network.h')
-rw-r--r--source4/include/system/network.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/include/system/network.h b/source4/include/system/network.h
index 8b9fe0bcc5..d380245865 100644
--- a/source4/include/system/network.h
+++ b/source4/include/system/network.h
@@ -62,3 +62,19 @@
#define inet_ntoa rep_inet_ntoa
#endif
+/*
+ * glibc on linux doesn't seem to have MSG_WAITALL
+ * defined. I think the kernel has it though..
+ */
+#ifndef MSG_WAITALL
+#define MSG_WAITALL 0
+#endif
+
+/*
+ * Some older systems seem not to have MAXHOSTNAMELEN
+ * defined.
+ */
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 254
+#endif
+