aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2020-12-17 17:08:25 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2020-12-17 17:08:25 +0000
commit65bf3043365bd86fc5d4d387ad0c42217f11330b (patch)
tree455d286acf32c9c226a4d5acfe0658e04fbce70c /include
parent395cb8fbc072a994bbc2c0059bd77168d20df522 (diff)
downloadsrc-65bf3043365bd86fc5d4d387ad0c42217f11330b.tar.gz
src-65bf3043365bd86fc5d4d387ad0c42217f11330b.zip
Change POSIX compliance level for visibility of strerror_l(3).
Third-party code tests for strerror_l(3) without specifying _POSIX_SOURCE, and then expects that the function is prototyped with _POSIX_SOURCE set to 200112. Reported and tested by: antoine Sponsored by: The FreeBSD Foundation MFC after: 13 days
Notes
Notes: svn path=/head/; revision=368723
Diffstat (limited to 'include')
-rw-r--r--include/string.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h
index 3c5cceaeb857..774cf5fe9756 100644
--- a/include/string.h
+++ b/include/string.h
@@ -140,7 +140,7 @@ int timingsafe_bcmp(const void *, const void *, size_t);
int timingsafe_memcmp(const void *, const void *, size_t);
#endif /* __BSD_VISIBLE */
-#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
+#if __POSIX_VISIBLE >= 200112 || defined(_XLOCALE_H_)
#include <xlocale/_string.h>
#endif