|
@@ -150,4 +150,16 @@ static pid_t __fork(void)
|
|
strong_alias(__fork,fork)
|
|
strong_alias(__fork,fork)
|
|
strong_alias(__fork,vfork)
|
|
strong_alias(__fork,vfork)
|
|
|
|
|
|
|
|
+#else
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ fork(), and we can't offer the correct semantics for vfork().
|
|
|
|
+ But instead of failing, just provide a dummy */
|
|
|
|
+int pthread_atfork(void (*prepare)(void),
|
|
|
|
+ void (*parent)(void),
|
|
|
|
+ void (*child)(void))
|
|
|
|
+{
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
#endif
|
|
#endif
|