From 6a75e3951506c12b42428a47710d07cadcdd723e Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Tue, 9 Dec 2025 00:38:48 +0200 Subject: [PATCH] ofed/libibverbs: remove strdupa() hack from config.h It is now provided by regular string.h. While there, remove stale $FreeBSD$ svn tag, and add include guards. Sponsored by: NVidia networking MFC after: 1 week --- 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 88722ee1cde..ee0ff8fb020 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_ */