aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/common.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/common.h b/plugins/common.h
index af979525..280333e0 100644
--- a/plugins/common.h
+++ b/plugins/common.h
@@ -78,10 +78,12 @@
#if HAVE_LWRES_NETDB_H
#include <lwres/netdb.h>
-#elif !HAVE_GETADDRINFO
-#include "getaddrinfo.h"
#else
-#include <netdb.h>
+# if !HAVE_GETADDRINFO
+# include "getaddrinfo.h"
+# else
+# include <netdb.h>
+# endif
#endif
/*