Skip to content

Commit 8bc0b97

Browse files
committed
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: 1e0743f ("glob: Add blocks support") Differential Revision: https://reviews.freebsd.org/D50670
1 parent a40d734 commit 8bc0b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/glob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ typedef struct {
107107
__BEGIN_DECLS
108108
int glob(const char * __restrict, int,
109109
int (*)(const char *, int), glob_t * __restrict);
110-
#ifdef __BLOCKS__
110+
#if defined(__BLOCKS__) && __BSD_VISIBLE
111111
int glob_b(const char * __restrict, int,
112112
int (^)(const char *, int), glob_t * __restrict);
113113
#endif

0 commit comments

Comments
 (0)