From: Ivan Maidanski Date: Thu, 10 Sep 2015 07:32:52 +0000 (+0300) Subject: Allow fork() automatic handling on Android with API level 21+ X-Git-Tag: gc7_6_0~143 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24fe4dc70bead3a8eafa25469689d478748a925d;p=gc Allow fork() automatic handling on Android with API level 21+ * include/private/gcconfig.h (CAN_CALL_ATFORK): Define also if __ANDROID_API__ >= 21. --- diff --git a/include/private/gcconfig.h b/include/private/gcconfig.h index 7120464c..c35f395b 100644 --- a/include/private/gcconfig.h +++ b/include/private/gcconfig.h @@ -2892,7 +2892,8 @@ #endif #if defined(CAN_HANDLE_FORK) && !defined(CAN_CALL_ATFORK) \ - && !defined(HURD) && !defined(PLATFORM_ANDROID) + && !defined(HURD) \ + && (!defined(PLATFORM_ANDROID) || __ANDROID_API__ >= 21) /* Have working pthread_atfork(). */ # define CAN_CALL_ATFORK #endif