about summary refs log tree commit diff
path: root/src/rt/rust_android_dummy.cpp
diff options
context:
space:
mode:
authorYoung-il Choi <duddlf.choi@samsung.com>2013-06-11 14:52:15 +0900
committerYoung-il Choi <duddlf.choi@samsung.com>2013-06-11 14:52:15 +0900
commitfebba9f41803e5a782c912131a9e26193ef0ced8 (patch)
tree34526fcfdf547759c41f75e0794b11121c014c03 /src/rt/rust_android_dummy.cpp
parent37733c7eafdcf4bd6c4c95d38a05c307abda78d6 (diff)
downloadrust-febba9f41803e5a782c912131a9e26193ef0ced8.tar.gz
rust-febba9f41803e5a782c912131a9e26193ef0ced8.zip
rt: dummy function pthread_atfork for android
Diffstat (limited to 'src/rt/rust_android_dummy.cpp')
-rw-r--r--src/rt/rust_android_dummy.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/rt/rust_android_dummy.cpp b/src/rt/rust_android_dummy.cpp
index b6fe78288e9..437893594a5 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