summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/pause.c
diff options
context:
space:
mode:
authorAustin Foxley <austinf@cetoncorp.com>2009-09-20 12:34:35 -0700
committerAustin Foxley <austinf@cetoncorp.com>2009-09-20 12:34:35 -0700
commita6f42ef7885b0b3676f99ee503f512ab588295ab (patch)
treea4e72937c17a5afb685c28513036cd116e0585a2 /libc/sysdeps/linux/common/pause.c
parentf424be8dbc4d1238274348fd2200ac431e13b33a (diff)
downloaduClibc-alpine-a6f42ef7885b0b3676f99ee503f512ab588295ab.tar.bz2
uClibc-alpine-a6f42ef7885b0b3676f99ee503f512ab588295ab.tar.xz
guard sysdep-cancel.h include under define
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc/sysdeps/linux/common/pause.c')
-rw-r--r--libc/sysdeps/linux/common/pause.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/pause.c b/libc/sysdeps/linux/common/pause.c
index b68ec4a51..cd0ea4a77 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