]> granicus.if.org Git - gc/commitdiff
Allow fork() automatic handling on Android with API level 21+
authorIvan Maidanski <ivmai@mail.ru>
Thu, 10 Sep 2015 07:32:52 +0000 (10:32 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 10 Sep 2015 07:32:52 +0000 (10:32 +0300)
* include/private/gcconfig.h (CAN_CALL_ATFORK): Define also if
__ANDROID_API__ >= 21.

include/private/gcconfig.h

index 7120464c270e278b9d00ed35c04326579e956c16..c35f395bf7ff341abe3378afa1c1571556dfaa73 100644 (file)
 #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