From 16fa3dcba027d13dcda9ee78e6057e3e5a79f80c Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Thu, 27 May 2021 09:39:49 +0200 Subject: [PATCH] ibstat: Include prototype for sysctlbyname(). Fixes the following compile warning: implicit declaration of function 'sysctlbyname' is invalid in C99 [-Wimplicit-function-declaration] Found by: J87 Differential Revision: https://reviews.freebsd.org/D30484 MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking --- contrib/ofed/infiniband-diags/src/ibstat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/ofed/infiniband-diags/src/ibstat.c b/contrib/ofed/infiniband-diags/src/ibstat.c index 6e08fad409ca..e4f3608dfd76 100644 --- a/contrib/ofed/infiniband-diags/src/ibstat.c +++ b/contrib/ofed/infiniband-diags/src/ibstat.c @@ -48,6 +48,7 @@ #include #include #include +#include #include