about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--btpd/btpd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/btpd/btpd.h b/btpd/btpd.h
index 3c9377b..8f25748 100644
--- a/btpd/btpd.h
+++ b/btpd/btpd.h
@@ -9,6 +9,9 @@
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netdb.h>
+#ifndef AI_ADDRCONFIG
+#define AI_ADDRCONFIG 0
+#endif
 
 #include <assert.h>
 #include <errno.h>