From 6238b1877d3c83b8b9ed589494d0705386b7f4f7 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 12 May 2022 11:21:08 +0200 Subject: [PATCH] Cygwin: signal.cc: Include Include for sleep() and usleep() declarations. Fix return type of usleep(). --- winsup/cygwin/signal.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index 9b6c2509d..8175de07b 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -11,6 +11,7 @@ details. */ #include "winsup.h" #include +#include #include #include #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;