[PATCH] libc: replace include/api/ifaddrs.h with the symlink to its identical musl copy

7 views
Skip to first unread message

Waldemar Kozaczuk

unread,
Aug 1, 2020, 1:09:45 AM8/1/20
to osv...@googlegroups.com, Waldemar Kozaczuk
Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>
---
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

Nadav Har'El

unread,
Aug 3, 2020, 4:35:29 PM8/3/20
to Waldemar Kozaczuk, Osv Dev
It seems you already did this change in a bigger patch and this one should be dropped, right?

--
Nadav Har'El
n...@scylladb.com


--
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 osv-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/20200801050937.19099-1-jwkozaczuk%40gmail.com.
Reply all
Reply to author
Forward
0 new messages