summaryrefslogtreecommitdiff
path: root/lib/nanosleep.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-07-02 18:23:51 +0000
committerJim Meyering <jim@meyering.net>2000-07-02 18:23:51 +0000
commite1919145a59da672450c1b151a7e57e525cc9c54 (patch)
tree4f69520977da238c770ad8c0fa98019916fe454d /lib/nanosleep.c
parent591e461818901f2d15b2158419c3a40602340adc (diff)
downloadcoreutils-e1919145a59da672450c1b151a7e57e525cc9c54.tar.xz
(SIGCONT): Define if not already defined.
Diffstat (limited to 'lib/nanosleep.c')
-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;