From ecd5f070c82505d6450937b4494c65d9fd4a0fc9 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 12 Jun 2007 20:49:48 +0000 Subject: [PATCH] * signal.cc (usleep): Use useconds_t for the type as per POSIX. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/signal.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 0100d8b83..7dcc1da36 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2007-06-12 Christopher Faylor + + * signal.cc (usleep): Use useconds_t for the type as per POSIX. + 2007-06-12 Corinna Vinschen * Makefile.in (DLL_OFILES): Add xsique.o. diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index 575c46c53..3765cff26 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -135,7 +135,7 @@ sleep (unsigned int seconds) } extern "C" unsigned int -usleep (unsigned int useconds) +usleep (useconds_t useconds) { struct timespec req; req.tv_sec = useconds / 1000000;