fix clash between sys/user.h and kernel ptrace.h on powerpc[64], sh
[musl.git] / include / ifaddrs.h
blobc0328a8ea510385a56fb15a8a8eba6ba90d1508c
1 #ifndef _IFADDRS_H
2 #define _IFADDRS_H
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <features.h>
9 #include <netinet/in.h>
10 #include <sys/socket.h>
12 struct ifaddrs {
13 struct ifaddrs *ifa_next;
14 char *ifa_name;
15 unsigned ifa_flags;
16 struct sockaddr *ifa_addr;
17 struct sockaddr *ifa_netmask;
18 union {
19 struct sockaddr *ifu_broadaddr;
20 struct sockaddr *ifu_dstaddr;
21 } ifa_ifu;
22 void *ifa_data;
24 #define ifa_broadaddr ifa_ifu.ifu_broadaddr
25 #define ifa_dstaddr ifa_ifu.ifu_dstaddr
27 void freeifaddrs(struct ifaddrs *);
28 int getifaddrs(struct ifaddrs **);
30 #ifdef __cplusplus
32 #endif
34 #endif