Date: Thu, 27 May 2021 07:44:18 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 16fa3dcba027 - main - ibstat: Include prototype for sysctlbyname(). Message-ID: <202105270744.14R7iIC0044365@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=16fa3dcba027d13dcda9ee78e6057e3e5a79f80c commit 16fa3dcba027d13dcda9ee78e6057e3e5a79f80c Author: Hans Petter Selasky <hselasky@FreeBSD.org> AuthorDate: 2021-05-27 07:39:49 +0000 Commit: Hans Petter Selasky <hselasky@FreeBSD.org> CommitDate: 2021-05-27 07:42:30 +0000 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 <sys/stat.h> #include <fcntl.h> #include <errno.h> +#include <sys/sysctl.h> #include <infiniband/umad.h>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202105270744.14R7iIC0044365>