From 65bf3043365bd86fc5d4d387ad0c42217f11330b Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Thu, 17 Dec 2020 17:08:25 +0000 Subject: 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 --- include/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/string.h') 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 #endif -- cgit v1.2.3