projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math: add fma TODO comments about the underflow issue
[musl]
/
include
/
net
/
if.h
diff --git
a/include/net/if.h
b/include/net/if.h
index
00c763a
..
3f4fc09
100644
(file)
--- a/
include/net/if.h
+++ b/
include/net/if.h
@@
-5,6
+5,8
@@
extern "C" {
#endif
extern "C" {
#endif
+#include <features.h>
+
#define IF_NAMESIZE 16
struct if_nameindex
#define IF_NAMESIZE 16
struct if_nameindex
@@
-21,7
+23,7
@@
void if_freenameindex (struct if_nameindex *);
-#if
def _GNU_SOURCE
+#if
defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#include <sys/socket.h>
#include <sys/socket.h>
@@
-41,6
+43,11
@@
void if_freenameindex (struct if_nameindex *);
#define IFF_PORTSEL 0x2000
#define IFF_AUTOMEDIA 0x4000
#define IFF_DYNAMIC 0x8000
#define IFF_PORTSEL 0x2000
#define IFF_AUTOMEDIA 0x4000
#define IFF_DYNAMIC 0x8000
+#define IFF_LOWER_UP 0x10000
+#define IFF_DORMANT 0x20000
+#define IFF_ECHO 0x40000
+#define IFF_VOLATILE (IFF_LOOPBACK|IFF_POINTOPOINT|IFF_BROADCAST| \
+ IFF_ECHO|IFF_MASTER|IFF_SLAVE|IFF_RUNNING|IFF_LOWER_UP|IFF_DORMANT)
struct ifaddr {
struct sockaddr ifa_addr;
struct ifaddr {
struct sockaddr ifa_addr;