glob.h: Limit glob_b prototype visibility

Hide glob_b behind __BSD_VISIBLE as it is not a POSIX function.

Reported by:	kib
Reviewed by:	kib
Fixes:	1e0743f54d ("glob: Add blocks support")
Differential Revision:	https://reviews.freebsd.org/D50670
This commit is contained in:
Bojan Novković 2025-06-03 22:34:59 +02:00
parent a40d73475b
commit 8bc0b97e19

View file

@ -107,7 +107,7 @@ typedef struct {
__BEGIN_DECLS
int glob(const char * __restrict, int,
int (*)(const char *, int), glob_t * __restrict);
#ifdef __BLOCKS__
#if defined(__BLOCKS__) && __BSD_VISIBLE
int glob_b(const char * __restrict, int,
int (^)(const char *, int), glob_t * __restrict);
#endif