diff options
author | avg <avg@FreeBSD.org> | 2015-09-28 15:25:36 +0000 |
---|---|---|
committer | avg <avg@FreeBSD.org> | 2015-09-28 15:25:36 +0000 |
commit | 9e11cda474d69a5e6d3857d6eafc36c235d8f326 (patch) | |
tree | d033742ee606f56324c837e0861432ca6f897532 /cddl/contrib/opensolaris/lib/libzpool/common | |
parent | b65b1a0f9ea4250428bd69317d5b59aa809d6496 (diff) | |
download | FreeBSD-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 'cddl/contrib/opensolaris/lib/libzpool/common')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libzpool/common/kernel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c b/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c index ef38696..f2515d5 100644 --- a/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c +++ b/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c @@ -45,7 +45,9 @@ * Emulation of kernel services in userland. */ +#ifndef __FreeBSD__ int aok; +#endif uint64_t physmem; vnode_t *rootdir = (vnode_t *)0xabcd1234; char hw_serial[HW_HOSTID_LEN]; |