summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBojan Novković <bnovkov@FreeBSD.org>2025-06-03 22:34:59 +0200
committerBojan Novković <bnovkov@FreeBSD.org>2025-06-03 22:59:28 +0200
commit8bc0b97e193b7bc2e2bb85ca489777e3dc672ff4 (patch)
treee412b04bcb65f71c98cb43af320646f6602c4e9d /include
parenta40d73475b1d716142dd32c29a16d5f9fc418f7d (diff)
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: 1e0743f54d2d ("glob: Add blocks support") Differential Revision: https://reviews.freebsd.org/D50670
Diffstat (limited to 'include')
-rw-r--r--include/glob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/glob.h b/include/glob.h
index cbe99bfef6ed..ee2ecd93cfc3 100644
--- a/include/glob.h
+++ b/include/glob.h
@@ -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