Revert Make newly POSIX functions visible

Summary:
This reverts commit d7efac1be1.
This reverts commit 9d0eea9422.

Some ports (specifically Python) define __BSD_VISIBLE themselves, so
the change from __BSD_VISIBLE to __POSIX_VISIBLE >= 202405 makes them
fail.

Reported by:	jrtc27, cperciva
This commit is contained in:
Stephen Hurd committed 2025-03-20 03:41:27 -04:00
1 parent 22178cb29f
commit 415a0ce02c
6 files changed
+20 -38

No files matched your search

+3 -3
View File
@@ -63,8 +63,8 @@ void *memrchr(const void *, int, size_t) __pure;
#endif
int memcmp(const void *, const void *, size_t) __pure;
void *(memcpy)(void * __restrict, const void * __restrict, size_t);
#if __POSIX_VISIBLE >= 202405
void *(memmem)(const void *, size_t, const void *, size_t) __pure;
#if __BSD_VISIBLE
void *memmem(const void *, size_t, const void *, size_t) __pure;
#endif
void *(memmove)(void *, const void *, size_t);
#if __BSD_VISIBLE
@@ -98,7 +98,7 @@ char *strerror(int);
#if __POSIX_VISIBLE >= 200112
int strerror_r(int, char *, size_t);
#endif
#if __POSIX_VISIBLE >= 202405
#if __BSD_VISIBLE
size_t (strlcat)(char * __restrict, const char * __restrict, size_t);
size_t (strlcpy)(char * __restrict, const char * __restrict, size_t);
#endif