The branch main has been updated by bnovkov:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=8bc0b97e193b7bc2e2bb85ca489777e3dc672ff4

commit 8bc0b97e193b7bc2e2bb85ca489777e3dc672ff4
Author:     Bojan Novković <bnov...@freebsd.org>
AuthorDate: 2025-06-03 20:34:59 +0000
Commit:     Bojan Novković <bnov...@freebsd.org>
CommitDate: 2025-06-03 20:59:28 +0000

    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 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

Reply via email to