Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Oct 2021 06:10:48 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: f55a620a8d3c - stable/12 - loader: zfs_cmd.c does not really compile without libzfs.h
Message-ID:  <202110080610.1986AmCV007204@gitrepo.freebsd.org>

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

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

commit f55a620a8d3caab91484fc932bda64af21d93c22
Author:     Toomas Soome <tsoome@FreeBSD.org>
AuthorDate: 2020-06-16 07:30:34 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-10-08 02:42:51 +0000

    loader: zfs_cmd.c does not really compile without libzfs.h
    
    Having libzfs.h wrapped in LOADER_ZFS_SUPPORT check does not really make sense,
    because we do need function declarations with C99.
    
    (cherry picked from commit 467535dcfaa6be42efe0fe8be9582cafc5dfb812)
---
 stand/common/zfs_cmd.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/stand/common/zfs_cmd.c b/stand/common/zfs_cmd.c
index cb98f7256268..3f6718f1850d 100644
--- a/stand/common/zfs_cmd.c
+++ b/stand/common/zfs_cmd.c
@@ -37,10 +37,7 @@ __FBSDID("$FreeBSD$");
 #include <sys/reboot.h>
 
 #include "bootstrap.h"
-
-#ifdef LOADER_ZFS_SUPPORT
 #include "libzfs.h"
-#endif
 
 COMMAND_SET(lszfs, "lszfs", "list child datasets of a zfs dataset",
 	    command_lszfs);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110080610.1986AmCV007204>