From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96920 invoked by alias); 3 Nov 2017 09:47:23 -0000 Mailing-List: contact newlib-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-cvs-owner@sourceware.org Received: (qmail 96876 invoked by uid 10080); 3 Nov 2017 09:47:22 -0000 Date: Fri, 03 Nov 2017 09:47:00 -0000 Message-ID: <20171103094722.96874.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Sebastian Huber To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Make ffsl() and ffsll() BSD-visible X-Act-Checkin: newlib-cygwin X-Git-Author: Sebastian Huber X-Git-Refname: refs/heads/master X-Git-Oldrev: ad15b8ccee7d4253e7f3a5dd69fe2ab8c67895b8 X-Git-Newrev: 1f42dc2bcf58d3b8629eb13d53de3f69fc314b47 X-SW-Source: 2017-q4/txt/msg00015.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=1f42dc2bcf58d3b8629eb13d53de3f69fc314b47 commit 1f42dc2bcf58d3b8629eb13d53de3f69fc314b47 Author: Sebastian Huber Date: Fri Sep 29 07:29:03 2017 +0200 Make ffsl() and ffsll() BSD-visible Since glibc 2.27, they are visible via _DEFAULT_SOURCE (__USE_MISC): https://git.kernel.org/pub/scm/docs/man-pages/man-pages.git/commit/man3/ffs.3?id=247bbcf00c9a425ab0ad6e303ec8718e4ba844a6 In FreeBSD, they are guarded by __BSD_VISIBLE. Signed-off-by: Sebastian Huber Diff: --- newlib/libc/include/strings.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/newlib/libc/include/strings.h b/newlib/libc/include/strings.h index 122f2fc..50a3042 100644 --- a/newlib/libc/include/strings.h +++ b/newlib/libc/include/strings.h @@ -53,11 +53,9 @@ void explicit_bzero(void *, size_t); #if __MISC_VISIBLE || __POSIX_VISIBLE < 200809 || __XSI_VISIBLE >= 700 int ffs(int) __pure2; #endif -#if __GNU_VISIBLE +#if __BSD_VISIBLE int ffsl(long) __pure2; int ffsll(long long) __pure2; -#endif -#if __BSD_VISIBLE int fls(int) __pure2; int flsl(long) __pure2; int flsll(long long) __pure2;