summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio/src/address.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/nixio/src/address.c')
-rw-r--r--libs/nixio/src/address.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/nixio/src/address.c b/libs/nixio/src/address.c
index 9ff063a33..3d779fbe7 100644
--- a/libs/nixio/src/address.c
+++ b/libs/nixio/src/address.c
@@ -23,6 +23,10 @@
#include <string.h>
#include <netdb.h>
+#ifndef NI_MAXHOST
+#define NI_MAXHOST 1025
+#endif
+
/**
* getaddrinfo(host, family, port)