projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9947ed5
)
make ifaddrs.h expose sys/socket.h
author
Rich Felker
<dalias@aerifal.cx>
Thu, 11 Apr 2013 02:38:46 +0000
(22:38 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 11 Apr 2013 02:38:46 +0000
(22:38 -0400)
the getifaddrs interface seems to have been invented by glibc, and
they expose socket.h, so for us not to do so is just gratuitous
incompatibility with the interface we're mimicing.
include/ifaddrs.h
patch
|
blob
|
history
diff --git
a/include/ifaddrs.h
b/include/ifaddrs.h
index 800eef65971ff2075c77209aeabc1dd930cca85d..4726db6e09387019b54dd793b9faa658875669cc 100644
(file)
--- a/
include/ifaddrs.h
+++ b/
include/ifaddrs.h
@@
-7,6
+7,7
@@
extern "C" {
#include <features.h>
#include <netinet/in.h>
+#include <sys/socket.h>
struct ifaddrs {
struct ifaddrs *ifa_next;