aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-08-02 02:50:57 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-08-02 02:50:57 +0000
commitfcd7bb224b0ec365e644e1ab02946ad1258e116f (patch)
tree85cdc3d29a0cb383cc3053e23756780bfd6601a7
parentc67fc92a04ba1d91fa211f9a22d70be80faf8db1 (diff)
downloadfetchmail-fcd7bb224b0ec365e644e1ab02946ad1258e116f.tar.gz
fetchmail-fcd7bb224b0ec365e644e1ab02946ad1258e116f.tar.bz2
fetchmail-fcd7bb224b0ec365e644e1ab02946ad1258e116f.zip
Fix FreeBSD compiler warning from broken includes.
svn path=/trunk/; revision=4230
-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) {