summaryrefslogtreecommitdiffstats
path: root/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c
diff options
context:
space:
mode:
authoravg <avg@FreeBSD.org>2015-10-23 08:01:46 +0000
committeravg <avg@FreeBSD.org>2015-10-23 08:01:46 +0000
commitfbbd0de7f163662e9a98731e9f2d1ef7267e488a (patch)
tree94da9297a2a3a54c09bd5baa36b1009f53b6adee /sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c
parente98221a3c3f53f33d609b0b8caed83d08a28e377 (diff)
downloadFreeBSD-src-fbbd0de7f163662e9a98731e9f2d1ef7267e488a.zip
FreeBSD-src-fbbd0de7f163662e9a98731e9f2d1ef7267e488a.tar.gz
MFC r288340: define aok in libnvpair which is linked to all zfs
libraries that need aok
Diffstat (limited to 'sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c')
-rw-r--r--sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c b/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c
index cd6af4e..7038f7f 100644
--- a/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c
+++ b/sys/cddl/contrib/opensolaris/common/nvpair/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