Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Jul 2021 19:18:59 GMT
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 5e0a56256cb0 - stable/13 - ibstat: Include prototype for sysctlbyname().
Message-ID:  <202107101918.16AJIxob049093@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by hselasky:

URL: https://cgit.FreeBSD.org/src/commit/?id=5e0a56256cb0390c7b7f89e8dcf5398d1a0f1577

commit 5e0a56256cb0390c7b7f89e8dcf5398d1a0f1577
Author:     Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2021-05-27 07:39:49 +0000
Commit:     Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2021-07-10 19:17:24 +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
    Sponsored by:   Mellanox Technologies // NVIDIA Networking
    
    (cherry picked from commit 16fa3dcba027d13dcda9ee78e6057e3e5a79f80c)
---
 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?202107101918.16AJIxob049093>