git: 48438ab6cf04 - stable/14 - libiscsiutil: Fix header to work with C++

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Tue, 27 Jan 2026 18:44:19 UTC
The branch stable/14 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=48438ab6cf0459e20e0586c31de0376d2ee65ee5

commit 48438ab6cf0459e20e0586c31de0376d2ee65ee5
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2025-04-02 18:40:32 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-01-27 18:15:57 +0000

    libiscsiutil: Fix header to work with C++
    
    Reviewed by:    asomers
    Sponsored by:   Chelsio Communications
    Differential Revision:  https://reviews.freebsd.org/D49137
    
    (cherry picked from commit e94d3f65b90107204d477a7fab059d8cf3b1b0c3)
---
 lib/libiscsiutil/libiscsiutil.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/libiscsiutil/libiscsiutil.h b/lib/libiscsiutil/libiscsiutil.h
index c091c1d9753a..b50afa1c9409 100644
--- a/lib/libiscsiutil/libiscsiutil.h
+++ b/lib/libiscsiutil/libiscsiutil.h
@@ -95,6 +95,8 @@ struct rchap {
 	size_t		rchap_challenge_len;
 };
 
+__BEGIN_DECLS
+
 struct chap		*chap_new(void);
 char			*chap_get_id(const struct chap *chap);
 char			*chap_get_challenge(const struct chap *chap);
@@ -174,4 +176,6 @@ void			log_debugx(const char *, ...) __printflike(1, 2);
 
 char			*checked_strdup(const char *);
 
+__END_DECLS
+
 #endif /* !__LIBISCSIUTIL_H__ */