]> Pileus Git - ~andy/fetchmail/blobdiff - servport.c
Fix FreeBSD compiler warning from broken includes.
[~andy/fetchmail] / servport.c
index 2f69faba5d239b028d279941a30bd8197dbe49c9..0cc9fa887993b7f7b80670b314daf1e3b0362a87 100644 (file)
 #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) {