From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 71D7C3858C98; Wed, 28 Feb 2024 09:01:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 71D7C3858C98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1709110868; bh=u6fSJEPrHpFlbJgIkx5NiyJrmdtrCUmfvICwK2EFvbs=; h=From:To:Subject:Date:From; b=Bf28MAoWklcz3YTCwSdLUBL78z/OToaWdthik1OM0jGY5UQieQNaE9g+AwfrmacGW Wr2DAiIBcj2oBMY81MiWlIx794/Cvow5q/JYkyL2B4RIbHb3NXTC+X4e1DZIMZnB0E /Xv+TAOuaqR4MdLWI5GTO6P8rlWWYevhFGY5nfNc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: add compile warning if ENOSHARE or ECASECLASH is used X-Act-Checkin: newlib-cygwin X-Git-Author: Christian Franke X-Git-Refname: refs/heads/main X-Git-Oldrev: 7a89f7261dc22f2bc65bc5b4dd6ddd48171a2991 X-Git-Newrev: 6f996d7751bf25f7e4282da631eb79b93662e484 Message-Id: <20240228090108.71D7C3858C98@sourceware.org> Date: Wed, 28 Feb 2024 09:01:08 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D6f996d7751b= f25f7e4282da631eb79b93662e484 commit 6f996d7751bf25f7e4282da631eb79b93662e484 Author: Christian Franke AuthorDate: Tue Feb 27 13:03:08 2024 +0100 Commit: Corinna Vinschen CommitDate: Wed Feb 28 09:59:07 2024 +0100 Cygwin: add compile warning if ENOSHARE or ECASECLASH is used =20 These errno values are no longer used by Cygwin. =20 Signed-off-by: Christian Franke Diff: --- newlib/libc/include/sys/errno.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/newlib/libc/include/sys/errno.h b/newlib/libc/include/sys/errn= o.h index f1509712e48e..7199db0d2e35 100644 --- a/newlib/libc/include/sys/errno.h +++ b/newlib/libc/include/sys/errno.h @@ -176,9 +176,9 @@ extern __IMPORT char *program_invocation_short_name; #ifdef __LINUX_ERRNO_EXTENSIONS__ #define ENOMEDIUM 135 /* No medium (in tape drive) */ #endif -#ifdef __CYGWIN__ -#define ENOSHARE 136 /* No such host or network path */ -#define ECASECLASH 137 /* Filename exists with different case */ +#if defined(__CYGWIN__) && !defined(__INSIDE_CYGWIN__) +#define ENOSHARE (_Pragma("GCC warning \"'ENOSHARE' is no longer used by C= ygwin\"") 136) +#define ECASECLASH (_Pragma("GCC warning \"'ECASECLASH' is no longer used = by Cygwin\"") 137) #endif #define EILSEQ 138 /* Illegal byte sequence */ #define EOVERFLOW 139 /* Value too large for defined data type */