From febba9f41803e5a782c912131a9e26193ef0ced8 Mon Sep 17 00:00:00 2001 From: Young-il Choi Date: Tue, 11 Jun 2013 14:52:15 +0900 Subject: [PATCH] rt: dummy function pthread_atfork for android --- src/rt/rust_android_dummy.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rt/rust_android_dummy.cpp b/src/rt/rust_android_dummy.cpp index b6fe78288e97a..437893594a563 100644 --- a/src/rt/rust_android_dummy.cpp +++ b/src/rt/rust_android_dummy.cpp @@ -76,4 +76,11 @@ extern "C" void globfree(glob_t *pglob) { } +extern "C" int pthread_atfork(void (*prefork)(void), + void (*postfork_parent)(void), + void (*postfork_child)(void)) +{ + return 0; +} + #endif