summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/unistd/sleep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/unistd/sleep.c b/libc/unistd/sleep.c
index 9db115a29..64753a873 100644
--- a/libc/unistd/sleep.c
+++ b/libc/unistd/sleep.c
@@ -99,6 +99,7 @@ unsigned int sleep (unsigned int seconds)
/* This is not necessary but some buggy programs depend on this. */
if (seconds == 0) {
# ifdef CANCELLATION_P
+ int cancelhandling;
CANCELLATION_P (THREAD_SELF);
# endif
return 0;