projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make CMPLX macros available in complex.h in non-c11 mode as well
[musl]
/
include
/
net
/
if.h
diff --git
a/include/net/if.h
b/include/net/if.h
index
2ae5f89
..
5813976
100644
(file)
--- a/
include/net/if.h
+++ b/
include/net/if.h
@@
-1,6
+1,12
@@
#ifndef _NET_IF_H
#define _NET_IF_H
#ifndef _NET_IF_H
#define _NET_IF_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <features.h>
+
#define IF_NAMESIZE 16
struct if_nameindex
#define IF_NAMESIZE 16
struct if_nameindex
@@
-17,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>
@@
-117,6
+123,8
@@
struct ifconf {
#endif
#endif
-
+#ifdef __cplusplus
+}
+#endif
#endif
#endif