[PATCH] Make ffsl() and ffsll() BSD-visible
Sebastian Huber
sebastian.huber@embedded-brains.de
Fri Sep 29 05:45:00 GMT 2017
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
More information about the Newlib
mailing list