diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-04-21 21:49:49 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:40 +0200 |
commit | e4b5997fc1cea7eeaad155aad02b8b1997143874 (patch) | |
tree | c5da88f5f87a537913ac8506b30193bde2125d9d /include | |
parent | 9df9c60aa93287211cf9698eb979d80fded765dc (diff) |
fork: provide __libc_fork only if THREADS are enabled
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/unistd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h index 2d53aa4b9..2fb7271af 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -812,7 +812,9 @@ libc_hidden_proto(setresgid) and the process ID of the new process to the old process. */ extern __pid_t fork (void) __THROW; # ifdef _LIBC +# ifdef __UCLIBC_HAS_THREADS__ extern __typeof(fork) __libc_fork; +# endif libc_hidden_proto(fork) # endif #endif |