initial commit, 4.5 stable
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
Some checks failed
🔗 GHA / 📊 Static checks (push) Has been cancelled
🔗 GHA / 🤖 Android (push) Has been cancelled
🔗 GHA / 🍏 iOS (push) Has been cancelled
🔗 GHA / 🐧 Linux (push) Has been cancelled
🔗 GHA / 🍎 macOS (push) Has been cancelled
🔗 GHA / 🏁 Windows (push) Has been cancelled
🔗 GHA / 🌐 Web (push) Has been cancelled
This commit is contained in:
32
thirdparty/misc/patches/ifaddrs-android-0001-complete-struct.patch
vendored
Normal file
32
thirdparty/misc/patches/ifaddrs-android-0001-complete-struct.patch
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
diff --git a/thirdparty/misc/ifaddrs-android.h b/thirdparty/misc/ifaddrs-android.h
|
||||
index e7d81e813f..04ff2ca58b 100644
|
||||
--- a/thirdparty/misc/ifaddrs-android.h
|
||||
+++ b/thirdparty/misc/ifaddrs-android.h
|
||||
@@ -34,6 +34,9 @@
|
||||
// Fills out a list of ifaddr structs (see below) which contain information
|
||||
// about every network interface available on the host.
|
||||
// See 'man getifaddrs' on Linux or OS X (nb: it is not a POSIX function).
|
||||
+#ifdef __cplusplus
|
||||
+extern "C" {
|
||||
+#endif
|
||||
struct ifaddrs {
|
||||
struct ifaddrs* ifa_next;
|
||||
char* ifa_name;
|
||||
@@ -42,7 +45,17 @@ struct ifaddrs {
|
||||
struct sockaddr* ifa_netmask;
|
||||
// Real ifaddrs has broadcast, point to point and data members.
|
||||
// We don't need them (yet?).
|
||||
+ // We never initialize the following members. We only define them to match the ifaddrs struct.
|
||||
+ union
|
||||
+ {
|
||||
+ struct sockaddr *ifu_broadaddr;
|
||||
+ struct sockaddr *ifu_dstaddr;
|
||||
+ } ifa_ifu;
|
||||
+ void *ifa_data;
|
||||
};
|
||||
+#ifdef __cplusplus
|
||||
+}
|
||||
+#endif
|
||||
|
||||
int getifaddrs(struct ifaddrs** result);
|
||||
void freeifaddrs(struct ifaddrs* addrs);
|
Reference in New Issue
Block a user