git: 0cfd862d4769 - stable/14 - ofed/libibverbs: remove strdupa() hack from config.h

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Tue, 16 Dec 2025 04:58:18 UTC
The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=0cfd862d4769471ac98a08792f959ae9166a1f90

commit 0cfd862d4769471ac98a08792f959ae9166a1f90
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-12-08 22:38:48 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-12-16 04:57:53 +0000

    ofed/libibverbs: remove strdupa() hack from config.h
    
    (cherry picked from commit 6a75e3951506c12b42428a47710d07cadcdd723e)
---
 contrib/ofed/libibverbs/config.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/ofed/libibverbs/config.h b/contrib/ofed/libibverbs/config.h
index 88722ee1cde1..ee0ff8fb020e 100644
--- a/contrib/ofed/libibverbs/config.h
+++ b/contrib/ofed/libibverbs/config.h
@@ -1,6 +1,5 @@
-/* $FreeBSD$ */
-
-#include "alloca.h"
+#ifndef _OFED_IBVERBS_CONFIG_H_
+#define	_OFED_IBVERBS_CONFIG_H_
 
 #define	memalign(align, size) ({			\
 	void *__ptr;					\
@@ -39,3 +38,4 @@
 #define	MADV_DOFORK MADV_NORMAL
 #define	SWITCH_FALLTHROUGH (void)0
 
+#endif	/* _OFED_IBVERBS_CONFIG_H_ */