This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Make ffsl() and ffsll() BSD-visible
- From: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- To: newlib at sourceware dot org
- Cc: yselkowi at redhat dot com
- Date: Fri, 29 Sep 2017 07:33:58 +0200
- Subject: [PATCH] Make ffsl() and ffsll() BSD-visible
- Authentication-results: sourceware.org; auth=none
In glibc they are guarded by __USE_MISC and __USE_GNU, however, on
FreeBSD they are guarded by __BSD_VISIBLE. In Newlib, __BSD_VISIBLE is
set to one by _GNU_SOURCE.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
---
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 122f2fcd6..50a304215 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;
--
2.12.3