From e4b5997fc1cea7eeaad155aad02b8b1997143874 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 21 Apr 2011 21:49:49 +0200 Subject: fork: provide __libc_fork only if THREADS are enabled Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- include/unistd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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 -- cgit v1.2.3