From 8bc0b97e193b7bc2e2bb85ca489777e3dc672ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bojan=20Novkovi=C4=87?= Date: Tue, 3 Jun 2025 22:34:59 +0200 Subject: [PATCH] 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 --- include/glob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/glob.h b/include/glob.h index cbe99bfef6e..ee2ecd93cfc 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