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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user