mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-23 00:59:51 +08:00
Cygwin: signal.cc: Include <unistd.h>
Include <unistd.h> for sleep() and usleep() declarations. Fix return type of usleep().
This commit is contained in:
parent
437d0a8f88
commit
6238b1877d
@ -11,6 +11,7 @@ details. */
|
|||||||
|
|
||||||
#include "winsup.h"
|
#include "winsup.h"
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
#include <sys/cygwin.h>
|
#include <sys/cygwin.h>
|
||||||
#include <sys/signalfd.h>
|
#include <sys/signalfd.h>
|
||||||
#include "pinfo.h"
|
#include "pinfo.h"
|
||||||
@ -174,7 +175,7 @@ sleep (unsigned int seconds)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
extern "C" unsigned int
|
extern "C" int
|
||||||
usleep (useconds_t useconds)
|
usleep (useconds_t useconds)
|
||||||
{
|
{
|
||||||
struct timespec req;
|
struct timespec req;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user