From 38db09374a1cf4c2712c980b07b22a67a5f6bbc3 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 31 Jul 2014 02:33:17 -0400 Subject: [PATCH] limit visibility of ffs function declaration to _XOPEN_SOURCE per the standard, ffs is XSI shaded, whereas the other functions in this header are in the base. --- include/strings.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/strings.h b/include/strings.h index 2b7e086c..4d7d69c3 100644 --- a/include/strings.h +++ b/include/strings.h @@ -20,7 +20,9 @@ char *index (const char *, int); char *rindex (const char *, int); #endif +#if defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE) int ffs (int); +#endif int strcasecmp (const char *, const char *); int strncasecmp (const char *, const char *, size_t); -- 2.25.1