aboutsummaryrefslogtreecommitdiff
path: root/cddl
diff options
context:
space:
mode:
authorToomas Soome <tsoome@FreeBSD.org>2019-11-02 21:02:54 +0000
committerToomas Soome <tsoome@FreeBSD.org>2019-11-02 21:02:54 +0000
commit24e1a7ac77170347cdc7523095850785e72d906c (patch)
treed5f54dfc304e0a560ca29481f4d4fc3380a42fb2 /cddl
parenta524707b9b2ff476e67a2b68847df37a47728dc1 (diff)
downloadsrc-24e1a7ac77170347cdc7523095850785e72d906c.tar.gz
src-24e1a7ac77170347cdc7523095850785e72d906c.zip
r354253 did miss the fact that libzpool is built as fake kernel
We build libzpool as kernel like, use _FAKE_KERNEL check to include kernel api in libzpool.
Notes
Notes: svn path=/head/; revision=354265
Diffstat (limited to 'cddl')
-rw-r--r--cddl/lib/libzpool/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/cddl/lib/libzpool/Makefile b/cddl/lib/libzpool/Makefile
index f65042e7ea37..ae9f9a91a53f 100644
--- a/cddl/lib/libzpool/Makefile
+++ b/cddl/lib/libzpool/Makefile
@@ -65,6 +65,8 @@ CFLAGS+= -DWANTS_MUTEX_OWNED
CFLAGS+= -I${SRCTOP}/lib/libpthread/thread
CFLAGS+= -I${SRCTOP}/lib/libpthread/sys
CFLAGS+= -I${SRCTOP}/lib/libthr/arch/${MACHINE_CPUARCH}/include
+CFLAGS.lz4.o+= -D_FAKE_KERNEL
+CFLAGS.lz4.pico+= -D_FAKE_KERNEL
CFLAGS.gcc+= -fms-extensions
LIBADD= md pthread z nvpair avl umem