summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2021-04-14 22:14:36 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-04-14 22:14:36 +0200
commitc0943ac451051b734711b0c95731ae7c515dbb31 (patch)
tree88bf05eb7fa4a9f5aa91e243c01c50b94a36ab09 /include
parentcca4c9f4c0878b08fac6dfe014148ddcd5aa7678 (diff)
platform.h: fix for Bionic >= 21 not having wait3()
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r--include/platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 24efd186b..387b6f537 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -424,6 +424,7 @@ typedef unsigned smalluint;
#define HAVE_NET_ETHERNET_H 1
#define HAVE_SYS_STATFS_H 1
#define HAVE_PRINTF_PERCENTM 1
+#define HAVE_WAIT3 1
#if defined(__UCLIBC__)
# if UCLIBC_VERSION < KERNEL_VERSION(0, 9, 32)
@@ -535,6 +536,9 @@ typedef unsigned smalluint;
# undef HAVE_STPCPY
# undef HAVE_STPNCPY
# endif
+# if __ANDROID_API__ >= 21
+# undef HAVE_WAIT3
+# endif
# undef HAVE_MEMPCPY
# undef HAVE_STRCHRNUL
# undef HAVE_STRVERSCMP