update from libc
[gnulib.git] / lib / nanosleep.c
index 2656266..c0c1356 100644 (file)
@@ -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;
@@ -64,7 +71,7 @@ my_usleep (const struct timespec *ts_delay)
 
 int
 rpl_nanosleep (const struct timespec *requested_delay,
-          struct timespec *remaining_delay)
+              struct timespec *remaining_delay)
 {
 #ifdef SA_NOCLDSTOP
   struct sigaction oldact, newact;