aboutsummaryrefslogtreecommitdiff
path: root/plugins/common.h.in
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/common.h.in')
-rw-r--r--plugins/common.h.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/common.h.in b/plugins/common.h.in
index 48e7f6f4..09df00dd 100644
--- a/plugins/common.h.in
+++ b/plugins/common.h.in
@@ -72,6 +72,13 @@
#include <ctype.h>
+#if HAVE_LWRES_NETDB_H
+#include <lwres/netdb.h>
+#elif !HAVE_GETADDRINFO
+#include "getaddrinfo.h"
+#else
+#include <netdb.h>
+#endif
/*
*