public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
From: Sebastian Huber <sh@sourceware.org>
To: cygwin-cvs@sourceware.org
Subject: [newlib-cygwin] Cygwin: signal.cc: Include <unistd.h>
Date: Thu, 12 May 2022 09:22:06 +0000 (GMT)	[thread overview]
Message-ID: <20220512092206.3220238515F3@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=6238b1877d3c83b8b9ed589494d0705386b7f4f7

commit 6238b1877d3c83b8b9ed589494d0705386b7f4f7
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Thu May 12 11:21:08 2022 +0200

    Cygwin: signal.cc: Include <unistd.h>
    
    Include <unistd.h> for sleep() and usleep() declarations.  Fix return type of
    usleep().

Diff:
---
 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 <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;


                 reply	other threads:[~2022-05-12  9:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220512092206.3220238515F3@sourceware.org \
    --to=sh@sourceware.org \
    --cc=cygwin-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).