From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 203213858405; Wed, 27 Oct 2021 18:06:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 203213858405 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Unconditionally declare strsignal X-Act-Checkin: newlib-cygwin X-Git-Author: Christian Biesinger via Newlib X-Git-Refname: refs/heads/master X-Git-Oldrev: 92e488d5b828b65a012adc0cbb06ac07055548d1 X-Git-Newrev: 26894de91d296af502b53c243e71f88c06ea1a3d Message-Id: <20211027180634.203213858405@sourceware.org> Date: Wed, 27 Oct 2021 18:06:34 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Oct 2021 18:06:34 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=26894de91d296af502b53c243e71f88c06ea1a3d commit 26894de91d296af502b53c243e71f88c06ea1a3d Author: Christian Biesinger via Newlib Date: Wed Oct 27 12:41:22 2021 -0400 Unconditionally declare strsignal Currently, newlib does not declare strsignal if DEFS_H is defined, ostensibly to work around a gdb bug. However, gdb itself compiles even with this ifndef removed, and this makes sim (another part of gdb) fail to compile. Since it is not clear exactly what issue this was working around, this patch just replaces that ifdef with the correct check, i.e. __POSIX_VISIBLE >= 200809. Diff: --- newlib/libc/include/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index 60e837bc0..32199c027 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -130,7 +130,7 @@ char *strlwr (char *); char *strupr (char *); #endif -#ifndef DEFS_H /* Kludge to work around problem compiling in gdb */ +#if __POSIX_VISIBLE >= 200809 char *strsignal (int __signo); #endif