summaryrefslogtreecommitdiff
path: root/src/print_ip_addr.c
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@humppa.nl>2012-04-26 19:50:17 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-04-28 10:08:37 +0200
commit6eac8bee5810a5f944406cd5b6ddc62e463f495d (patch)
tree0066ec6f65ad06afa48887201b2a86236c0671e2 /src/print_ip_addr.c
parentaf326033739f52b5787290a1af361b9a9f2b0225 (diff)
Fix include order; fixes build on OpenBSD.
Diffstat (limited to 'src/print_ip_addr.c')
-rw-r--r--src/print_ip_addr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/print_ip_addr.c b/src/print_ip_addr.c
index e97edaa..778427c 100644
--- a/src/print_ip_addr.c
+++ b/src/print_ip_addr.c
@@ -1,7 +1,8 @@
// vim:ts=8:expandtab
-#include <netinet/in.h>
-#include <sys/socket.h>
#include <sys/types.h>
+#include <sys/socket.h>
+#include <netinet/in.h>
+
#include <stdlib.h>
#include <stdio.h>
#include <string.h>