diff options
author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2023-04-19 19:37:29 +0000 |
---|---|---|
committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2023-04-19 20:12:04 +0000 |
commit | a7469c9c0a504a5e6e9b89e148cd78df5e67ff7f (patch) | |
tree | dfc49944260392d5def0f2401a24df7cf4cf0a80 | |
parent | 0e0c47ecd624da976bf7e1ff391cb4a00c76b200 (diff) | |
download | src-a7469c9c0a504a5e6e9b89e148cd78df5e67ff7f.tar.gz src-a7469c9c0a504a5e6e9b89e148cd78df5e67ff7f.zip |
libc: bsort_s() requires both __BSD_VISIBLE and __EXT1_VISIBLE
Fixes build of Python:
/usr/include/stdlib.h:409:1: error: unknown type name 'errno_t'
errno_t bsort_s(void *, rsize_t, rsize_t,
Reported by: vishwin@
MFC after: 1 week
Sponsored by: NVIDIA Networking
Differential Revision: https://reviews.freebsd.org/D36493
-rw-r--r-- | include/stdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 857092b9053e..3ad28cf68847 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -403,12 +403,12 @@ void ignore_handler_s(const char * __restrict, void * __restrict, errno_t); /* K.3.6.3.2 */ errno_t qsort_s(void *, rsize_t, rsize_t, int (*)(const void *, const void *, void *), void *); -#endif /* __EXT1_VISIBLE */ #if __BSD_VISIBLE errno_t bsort_s(void *, rsize_t, rsize_t, int (*)(const void *, const void *, void *), void *); #endif /* __BSD_VISIBLE */ +#endif /* __EXT1_VISIBLE */ __END_DECLS __NULLABILITY_PRAGMA_POP |