Whoops, I included sys/types in the wrong file. master 3.0.714
authorEmil Mikulic <emikulic@gmail.com>
Mon, 6 Jun 2011 10:47:56 +0000 (20:47 +1000)
committerEmil Mikulic <emikulic@gmail.com>
Mon, 6 Jun 2011 10:47:56 +0000 (20:47 +1000)
Suggested by: Chris Kuethe

addr.c
addr.h
localip.c

diff --git a/addr.c b/addr.c
index 5485fd8..721d5e3 100644 (file)
--- a/addr.c
+++ b/addr.c
@@ -10,7 +10,6 @@
 #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 */
diff --git a/addr.h b/addr.h
index ea2ae3f..ae7eaa1 100644 (file)
--- a/addr.h
+++ b/addr.h
@@ -10,6 +10,7 @@
 #ifndef __DARKSTAT_ADDR_H
 #define __DARKSTAT_ADDR_H
 
+#include <sys/types.h> /* for in_addr_t, at least on OpenBSD */
 #include <sys/socket.h> /* for AF_INET6 */
 #include <netinet/in.h> /* for in6_addr */
 
index ff50ce0..51a1bc3 100644 (file)
--- a/localip.c
+++ b/localip.c
@@ -12,7 +12,6 @@
 #include "err.h"
 #include "localip.h"
 
-#include <sys/types.h> /* OpenBSD needs this */
 #include <sys/socket.h>
 #include <net/if.h>
 #include <ifaddrs.h>