[git commit nptl] guard sysdep-cancel.h include under define

Austin Foxley austinf at cetoncorp.com
Sat Sep 19 02:00:48 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=a6f42ef7885b0b3676f99ee503f512ab588295ab
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl

Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
 libc/sysdeps/linux/common/pause.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/libc/sysdeps/linux/common/pause.c b/libc/sysdeps/linux/common/pause.c
index b68ec4a..cd0ea4a 100644
--- a/libc/sysdeps/linux/common/pause.c
+++ b/libc/sysdeps/linux/common/pause.c
@@ -10,7 +10,11 @@
 #define __UCLIBC_HIDE_DEPRECATED__
 #include <sys/syscall.h>
 #include <unistd.h>
+
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
 #include <sysdep-cancel.h>
+#endif
+
 #include <signal.h>
 
 /* Suspend the process until a signal arrives.
@@ -30,4 +34,6 @@ __libc_pause (void)
 }
 weak_alias (__libc_pause, pause)
 
+#ifdef __UCLIBC_HAS_THREADS_NATIVE__
 LIBC_CANCEL_HANDLED ();		/* sigsuspend handles our cancellation.  */
+#endif
-- 
1.6.3.3



More information about the uClibc-cvs mailing list