fixes for host gcc 4.6.1
[zpugcc/jano.git] / toolchain / gcc / newlib / libc / syscalls / sysfork.c
blob96d23c7dd31244d47d8926586ac395dbb81c1f7b
1 /* connector for fork */
3 /* Don't define this if NO_FORK. See for example libc/sys/win32/spawn.c. */
5 #ifndef NO_FORK
7 #include <reent.h>
9 int
10 _DEFUN_VOID (fork)
12 #ifdef REENTRANT_SYSCALLS_PROVIDED
13 return _fork_r (_REENT);
14 #else
15 return _fork ();
16 #endif
19 #endif