Cygwin: signal.cc: Include <unistd.h>

Include <unistd.h> for sleep() and usleep() declarations.  Fix return type of
usleep().
This commit is contained in:
Sebastian Huber 2022-05-12 11:21:08 +02:00
parent 437d0a8f88
commit 6238b1877d
1 changed files with 2 additions and 1 deletions

View 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;