summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2015-09-28 15:25:36 +0000
committeravg <avg@FreeBSD.org>2015-09-28 15:25:36 +0000
commit9e11cda474d69a5e6d3857d6eafc36c235d8f326 (patch)
treed033742ee606f56324c837e0861432ca6f897532 /sys/cddl
parentb65b1a0f9ea4250428bd69317d5b59aa809d6496 (diff)
downloadFreeBSD-src-9e11cda474d69a5e6d3857d6eafc36c235d8f326.zip
FreeBSD-src-9e11cda474d69a5e6d3857d6eafc36c235d8f326.tar.gz
define aok in libnvpair which is linked to all zfs libraries that need aok
This removes the circular dependency of libnvpair on libzfs / libzpool. PR: 199811 Obtained from: bapt MFC after: 23 days
Diffstat (limited to 'sys/cddl')
-rw-r--r--sys/cddl/contrib/opensolaris/common/nvpair/opensolaris_nvpair.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/common/nvpair/opensolaris_nvpair.c b/sys/cddl/contrib/opensolaris/common/nvpair/opensolaris_nvpair.c
index cd6af4e..7038f7f 100644
--- a/sys/cddl/contrib/opensolaris/common/nvpair/opensolaris_nvpair.c
+++ b/sys/cddl/contrib/opensolaris/common/nvpair/opensolaris_nvpair.c
@@ -44,6 +44,14 @@
#endif
#define skip_whitespace(p) while ((*(p) == ' ') || (*(p) == '\t')) p++
+#if defined(__FreeBSD__) && !defined(_KERNEL)
+/*
+ * libnvpair is the lowest commen denominator for ZFS related libraries,
+ * defining aok here makes it usable by all ZFS related libraries
+ */
+int aok;
+#endif
+
/*
* nvpair.c - Provides kernel & userland interfaces for manipulating
* name-value pairs.
OpenPOWER on IntegriCloud