projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix nftw FTW_MOUNT flag
[musl]
/
src
/
network
/
getifaddrs.c
diff --git
a/src/network/getifaddrs.c
b/src/network/getifaddrs.c
index
a14ac1b
..
5a94cc7
100644
(file)
--- a/
src/network/getifaddrs.c
+++ b/
src/network/getifaddrs.c
@@
-11,6
+11,7
@@
#include <arpa/inet.h> /* inet_pton */
#include <unistd.h>
#include <sys/ioctl.h>
#include <arpa/inet.h> /* inet_pton */
#include <unistd.h>
#include <sys/ioctl.h>
+#include <sys/socket.h>
typedef union {
struct sockaddr_in6 v6;
typedef union {
struct sockaddr_in6 v6;
@@
-66,7
+67,7
@@
static void ipv6netmask(unsigned prefix_length, struct sockaddr_in6 *sa)
static void dealwithipv6(stor **list, stor** head)
{
static void dealwithipv6(stor **list, stor** head)
{
- FILE* f = fopen("/proc/net/if_inet6", "r");
+ FILE* f = fopen("/proc/net/if_inet6", "r
be
");
/* 00000000000000000000000000000001 01 80 10 80 lo
A B C D E F
all numbers in hex
/* 00000000000000000000000000000001 01 80 10 80 lo
A B C D E F
all numbers in hex