summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2015-09-10 10:32:52 +0300
committerIvan Maidanski <ivmai@mail.ru>2015-09-10 10:32:52 +0300
commit24fe4dc70bead3a8eafa25469689d478748a925d (patch)
tree81dad18e829dd02f75fbe6df457c55a0095dc23c /include
parent5df629e47218d72ea142c6a492d63b6ff0ce2140 (diff)
downloadbdwgc-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.h3
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