Print this page
8115 parallel zfs mount

@@ -21,10 +21,11 @@
 #
 # Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
 # Use is subject to license terms.
 #
 # Copyright (c) 2016 by Delphix. All rights reserved.
+# Copyright 2017 RackTop Systems.
 #
 
 PROG:sh=        cd ..; basename `pwd`
 OBJS= $(PROG).o translate.o
 SRCS= $(OBJS:%.o=../%.c)

@@ -38,10 +39,11 @@
 LDLIBS += -lzpool -lzfs -lnvpair
 
 C99MODE=        -xc99=%all
 C99LMODE=       -Xc99=%all
 
+CPPFLAGS.first = -I$(SRC)/lib/libfakekernel/common -D_FAKE_KERNEL
 CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_REENTRANT $(INCS)
 
 CERRWARN += -_gcc=-Wno-uninitialized
 CERRWARN += -_gcc=-Wno-switch