Add sys/types.h includes for OpenBSD.
authorEmil Mikulic <emikulic@gmail.com>
Mon, 30 May 2011 11:29:22 +0000 (21:29 +1000)
committerEmil Mikulic <emikulic@gmail.com>
Sat, 4 Jun 2011 14:00:31 +0000 (00:00 +1000)
Suggested by: Chris Kuethe

addr.c
localip.c

diff --git a/addr.c b/addr.c
index 721d5e3..5485fd8 100644 (file)
--- a/addr.c
+++ b/addr.c
@@ -10,6 +10,7 @@
 #include "addr.h"
 
 #include <arpa/inet.h> /* for inet_ntop */
+#include <sys/types.h> /* OpenBSD needs this */
 #include <assert.h>
 #include <string.h> /* for memcmp */
 #include <netdb.h> /* for getaddrinfo */
index 33f5a71..92afce5 100644 (file)
--- a/localip.c
+++ b/localip.c
@@ -13,6 +13,7 @@
 #include "err.h"
 #include "localip.h"
 
+#include <sys/types.h> /* OpenBSD needs this */
 #include <sys/socket.h>
 #include <net/if.h>
 #include <ifaddrs.h>