diff options
author | Jasper Lievisse Adriaanse <jasper@humppa.nl> | 2012-04-26 19:50:17 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2012-04-28 10:08:37 +0200 |
commit | 6eac8bee5810a5f944406cd5b6ddc62e463f495d (patch) | |
tree | 0066ec6f65ad06afa48887201b2a86236c0671e2 | |
parent | af326033739f52b5787290a1af361b9a9f2b0225 (diff) |
Fix include order; fixes build on OpenBSD.
-rw-r--r-- | src/print_ip_addr.c | 5 | ||||
-rw-r--r-- | src/print_ipv6_addr.c | 8 |
2 files changed, 8 insertions, 5 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> diff --git a/src/print_ipv6_addr.c b/src/print_ipv6_addr.c index be64ba3..21974f3 100644 --- a/src/print_ipv6_addr.c +++ b/src/print_ipv6_addr.c @@ -1,13 +1,15 @@ // vim:ts=8:expandtab +#include <sys/types.h> +#include <sys/socket.h> +#include <netinet/in.h> +#include <arpa/inet.h> + #include <stdio.h> #include <stdbool.h> #include <unistd.h> #include <stdlib.h> -#include <sys/types.h> -#include <sys/socket.h> #include <netdb.h> #include <string.h> -#include <arpa/inet.h> #include <yajl/yajl_gen.h> #include <yajl/yajl_version.h> |