From: Maciej Żenczykowski Date: Sat, 9 May 2020 19:23:56 +0000 (-0700) Subject: libiptc: do not typedef socklen_t on Android X-Git-Tag: v1.8.5~41 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9dd0c484767c9fa3852b23c790d3d5e84e510beb;p=thirdparty%2Fiptables.git libiptc: do not typedef socklen_t on Android This is present in bionic header files regardless of compiler being used (likely clang) Test: builds Signed-off-by: Maciej Żenczykowski Signed-off-by: Pablo Neira Ayuso --- diff --git a/libiptc/libip4tc.c b/libiptc/libip4tc.c index 55540638..78a896f7 100644 --- a/libiptc/libip4tc.c +++ b/libiptc/libip4tc.c @@ -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 diff --git a/libiptc/libip6tc.c b/libiptc/libip6tc.c index b7dd1e33..06cd6237 100644 --- a/libiptc/libip6tc.c +++ b/libiptc/libip6tc.c @@ -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