Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Jun 2025 21:00:42 GMT
From:      Bojan =?utf-8?Q?Novkovi=C4=87?= <bnovkov@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8bc0b97e193b - main - glob.h: Limit glob_b prototype visibility
Message-ID:  <202506032100.553L0gEt074161@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bnovkov:

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

commit 8bc0b97e193b7bc2e2bb85ca489777e3dc672ff4
Author:     Bojan Novković <bnovkov@FreeBSD.org>
AuthorDate: 2025-06-03 20:34:59 +0000
Commit:     Bojan Novković <bnovkov@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202506032100.553L0gEt074161>