projects
/
darkstat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7881778
)
Add sys/types.h includes for OpenBSD.
author
Emil Mikulic
<emikulic@gmail.com>
Mon, 30 May 2011 11:29:22 +0000
(21:29 +1000)
committer
Emil Mikulic
<emikulic@gmail.com>
Sat, 4 Jun 2011 14:00:31 +0000
(
00:00
+1000)
Suggested by: Chris Kuethe
addr.c
patch
|
blob
|
history
localip.c
patch
|
blob
|
history
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 */
diff --git
a/localip.c
b/localip.c
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>