summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/nanosleep.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/nanosleep.c b/lib/nanosleep.c
index 4cfe21b57..c0c135687 100644
--- a/lib/nanosleep.c
+++ b/lib/nanosleep.c
@@ -36,6 +36,13 @@ extern int errno;
# include <unistd.h>
#endif
+/* Some systems (MSDOS) don't have SIGCONT.
+ Using SIGTERM here turns the signal-handling code below
+ into a no-op on such systems. */
+#ifndef SIGCONT
+# define SIGCONT SIGTERM
+#endif
+
#include "nanosleep.h"
static int suspended;