From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dedi548.your-server.de (dedi548.your-server.de [85.10.215.148]) by sourceware.org (Postfix) with ESMTPS id 21711385740F for ; Thu, 12 May 2022 06:43:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 21711385740F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=embedded-brains.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=embedded-brains.de Received: from sslproxy06.your-server.de ([78.46.172.3]) by dedi548.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1np2Xw-000Ele-Dl for newlib@sourceware.org; Thu, 12 May 2022 08:43:36 +0200 Received: from [82.100.198.138] (helo=mail.embedded-brains.de) by sslproxy06.your-server.de with esmtpsa (TLSv1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1np2Xw-000LsI-Hx for newlib@sourceware.org; Thu, 12 May 2022 08:43:36 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id 3F51A480176 for ; Thu, 12 May 2022 08:43:36 +0200 (CEST) Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id mXXHVWre171a for ; Thu, 12 May 2022 08:43:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.embedded-brains.de (Postfix) with ESMTP id DA532480177 for ; Thu, 12 May 2022 08:43:35 +0200 (CEST) X-Virus-Scanned: amavisd-new at zimbra.eb.localhost Received: from mail.embedded-brains.de ([127.0.0.1]) by localhost (zimbra.eb.localhost [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2PgLKFXL8Yk0 for ; Thu, 12 May 2022 08:43:35 +0200 (CEST) Received: from zimbra.eb.localhost (unknown [192.168.96.242]) by mail.embedded-brains.de (Postfix) with ESMTPSA id B9D3B480176 for ; Thu, 12 May 2022 08:43:35 +0200 (CEST) From: Sebastian Huber To: newlib@sourceware.org Subject: [PATCH] Cygwin: signal.cc: Include Date: Thu, 12 May 2022 08:43:32 +0200 Message-Id: <20220512064332.23298-1-sebastian.huber@embedded-brains.de> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authenticated-Sender: smtp-embedded@poldinet.de X-Virus-Scanned: Clear (ClamAV 0.103.5/26538/Wed May 11 10:06:03 2022) X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2022 06:43:40 -0000 Include for sleep() and usleep() declarations. Fix return typ= e of usleep(). --- winsup/cygwin/signal.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/signal.cc b/winsup/cygwin/signal.cc index 9b6c2509d..22d3715df 100644 --- a/winsup/cygwin/signal.cc +++ b/winsup/cygwin/signal.cc @@ -11,6 +11,7 @@ details. */ =20 #include "winsup.h" #include +#include #include #include #include "pinfo.h" @@ -163,7 +164,7 @@ nanosleep (const struct timespec *rqtp, struct timesp= ec *rmtp) return 0; } =20 -extern "C" unsigned int +unsigned int sleep (unsigned int seconds) { struct timespec req, rem; @@ -174,7 +175,7 @@ sleep (unsigned int seconds) return 0; } =20 -extern "C" unsigned int +int usleep (useconds_t useconds) { struct timespec req; --=20 2.35.3