aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFabian Raetz <fabian.raetz@gmail.com>2014-05-02 20:45:03 +0200
committerFabian Raetz <fabian.raetz@gmail.com>2014-05-02 20:45:03 +0200
commit2364b118f2189d1d8d447c199695fefa71952bf8 (patch)
treeff524e57ec3cfe4320a162b008e4aab9b47aef28 /src
parent3e7dac9dadb4cb45d2a6771d208c920b667c289b (diff)
reorder includes to compile on OpenBSD
From getifaddr(3) manual: "If both <net/if.h> and <ifaddrs.h> are being included, <net/if.h> must be included before <ifaddrs.h>" http://www.openbsd.org/cgi-bin/man.cgi?query=getifaddrs&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html
Diffstat (limited to 'src')
-rw-r--r--src/compat.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/compat.h b/src/compat.h
index 3924445b1a..8fbafb6cce 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -28,16 +28,16 @@
#include <windows.h>
#include <ws2tcpip.h>
#else
+#include <sys/fcntl.h>
+#include <sys/mman.h>
+#include <sys/socket.h>
#include <sys/types.h>
+#include <net/if.h>
+#include <netinet/in.h>
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <limits.h>
-#include <net/if.h>
#include <netdb.h>
-#include <netinet/in.h>
-#include <sys/fcntl.h>
-#include <sys/mman.h>
-#include <sys/socket.h>
#include <unistd.h>
#endif