Signed-off-by: Waldemar Kozaczuk <[email protected]>
---
include/api/ifaddrs.h | 35 +----------------------------------
1 file changed, 1 insertion(+), 34 deletions(-)
mode change 100644 => 120000 include/api/ifaddrs.h
diff --git a/include/api/ifaddrs.h b/include/api/ifaddrs.h
deleted file mode 100644
index e3e71402..00000000
--- a/include/api/ifaddrs.h
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef _IFADDRS_H
-#define _IFADDRS_H
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-#include <features.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
-
-struct ifaddrs {
- struct ifaddrs *ifa_next;
- char *ifa_name;
- unsigned ifa_flags;
- struct sockaddr *ifa_addr;
- struct sockaddr *ifa_netmask;
- union {
- struct sockaddr *ifu_broadaddr;
- struct sockaddr *ifu_dstaddr;
- } ifa_ifu;
- void *ifa_data;
-};
-#define ifa_broadaddr ifa_ifu.ifu_broadaddr
-#define ifa_dstaddr ifa_ifu.ifu_dstaddr
-
-void freeifaddrs(struct ifaddrs *ifp);
-int getifaddrs(struct ifaddrs **ifap);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif
diff --git a/include/api/ifaddrs.h b/include/api/ifaddrs.h
new file mode 120000
index 00000000..39a7aded
--- /dev/null
+++ b/include/api/ifaddrs.h
@@ -0,0 +1 @@
+../../musl/include/ifaddrs.h
\ No newline at end of file
--
2.25.1
--
You received this message because you are subscribed to the Google Groups "OSv
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/osv-dev/20200801050937.19099-1-jwkozaczuk%40gmail.com.