about summary refs log tree commit diff
path: root/include/strings.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-07-31 02:33:17 -0400
committerRich Felker <dalias@aerifal.cx>2014-07-31 02:33:17 -0400
commit38db09374a1cf4c2712c980b07b22a67a5f6bbc3 (patch)
tree3edc1e88c4f897279243e5f88cf0626d0c768b8c /include/strings.h
parent4f449374320ef487191611ddaa40c0a89c475a8a (diff)
downloadmusl-38db09374a1cf4c2712c980b07b22a67a5f6bbc3.tar.gz
musl-38db09374a1cf4c2712c980b07b22a67a5f6bbc3.tar.xz
musl-38db09374a1cf4c2712c980b07b22a67a5f6bbc3.zip
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.
Diffstat (limited to 'include/strings.h')
-rw-r--r--include/strings.h2
1 files changed, 2 insertions, 0 deletions
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);