]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: signal.cc: Include <unistd.h>
authorSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 12 May 2022 09:21:08 +0000 (11:21 +0200)
committerSebastian Huber <sebastian.huber@embedded-brains.de>
Thu, 12 May 2022 09:21:08 +0000 (11:21 +0200)
Include <unistd.h> for sleep() and usleep() declarations.  Fix return type of
usleep().

winsup/cygwin/signal.cc

index 9b6c2509d0f8ce2a1f38d496f0171bb3ae27aa24..8175de07b92091537c65cb302018913f6721b2e7 100644 (file)
@@ -11,6 +11,7 @@ details. */
 
 #include "winsup.h"
 #include <stdlib.h>
+#include <unistd.h>
 #include <sys/cygwin.h>
 #include <sys/signalfd.h>
 #include "pinfo.h"
@@ -174,7 +175,7 @@ sleep (unsigned int seconds)
   return 0;
 }
 
-extern "C" unsigned int
+extern "C" int
 usleep (useconds_t useconds)
 {
   struct timespec req;
This page took 0.030659 seconds and 5 git commands to generate.