aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--servport.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/servport.c b/servport.c
index 2f69faba..0cc9fa88 100644
--- a/servport.c
+++ b/servport.c
@@ -12,10 +12,11 @@
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
+#if defined(HAVE_NETINET_IN_H)
+#include <netinet/in.h>
+#endif
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
-#elif defined(HAVE_NETINET_IN_H)
-#include <netinet/in.h>
#endif
int servport(const char *service) {