]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
libiptc: do not typedef socklen_t on Android
authorMaciej Żenczykowski <maze@google.com>
Sat, 9 May 2020 19:23:56 +0000 (12:23 -0700)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sun, 10 May 2020 23:04:22 +0000 (01:04 +0200)
This is present in bionic header files regardless of compiler
being used (likely clang)

Test: builds
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
libiptc/libip4tc.c
libiptc/libip6tc.c

index 5554063863dbb99bac7a6f1f0c7df1905d2fd362..78a896f7d61f0ebae7d60232f2dd9bcac7509297 100644 (file)
@@ -22,7 +22,7 @@
 #define inline
 #endif
 
-#if !defined(__GLIBC__) || (__GLIBC__ < 2)
+#if !defined(__BIONIC__) && (!defined(__GLIBC__) || (__GLIBC__ < 2))
 typedef unsigned int socklen_t;
 #endif
 
index b7dd1e3374bd29eda57e9eadabc281655f034f44..06cd623731e4b4450ee54a9692d8033d20c66b18 100644 (file)
@@ -23,7 +23,7 @@
 #define inline
 #endif
 
-#if !defined(__GLIBC__) || (__GLIBC__ < 2)
+#if !defined(__BIONIC__) && (!defined(__GLIBC__) || (__GLIBC__ < 2))
 typedef unsigned int socklen_t;
 #endif