diff options
author | Ivan Maidanski <ivmai@mail.ru> | 2015-09-10 10:32:52 +0300 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2015-09-10 10:32:52 +0300 |
commit | 24fe4dc70bead3a8eafa25469689d478748a925d (patch) | |
tree | 81dad18e829dd02f75fbe6df457c55a0095dc23c /include | |
parent | 5df629e47218d72ea142c6a492d63b6ff0ce2140 (diff) | |
download | bdwgc-24fe4dc70bead3a8eafa25469689d478748a925d.tar.gz |
Allow fork() automatic handling on Android with API level 21+
* include/private/gcconfig.h (CAN_CALL_ATFORK): Define also if
__ANDROID_API__ >= 21.
Diffstat (limited to 'include')
-rw-r--r-- | include/private/gcconfig.h | 3 |
1 files changed, 2 insertions, 1 deletions
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 |