Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108248534
D48070.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D48070.diff
View Options
diff --git a/lib/libprocstat/zfs/Makefile b/lib/libprocstat/zfs/Makefile
--- a/lib/libprocstat/zfs/Makefile
+++ b/lib/libprocstat/zfs/Makefile
@@ -6,19 +6,23 @@
FORTIFY_SOURCE= 0
-CFLAGS+= -DIN_BASE -D__KERNEL__ -D_KERNEL -I. -I${.CURDIR}
+# We fake a kernel compilation environment in order to get the definition for
+# 'zpool_t'.
+CFLAGS+= -DIN_BASE -D__KERNEL__ -D_KERNEL -UKLD_TIED -DKLD_MODULE
+CFLAGS+= -DHAVE_ISSETUGID -D_SYS_VMEM_H_
+
+CFLAGS+= -fno-builtin -nostdlib
+
+CFLAGS+= -I${.CURDIR}
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl
-CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/zfs
+CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/include/os/freebsd
CFLAGS+= -I${SRCTOP}/sys/contrib/ck/include
-
-CFLAGS+= -I${SRCTOP}/sys -I. -I..
CFLAGS+= -I${SRCTOP}/sys/contrib/openzfs/module/icp/include
-CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
-CFLAGS+= -DHAVE_ISSETUGID -D_SYS_VMEM_H_ -UKLD_TIED -DKLD_MODULE
+CFLAGS+= -I${SRCTOP}/sys -I. -I..
-CFLAGS+= -fno-builtin -nostdlib
+CFLAGS+= -include ${SRCTOP}/sys/contrib/openzfs/include/os/freebsd/spl/sys/ccompile.h
all: ${OBJS}
CLEANFILES= ${OBJS}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 2:34 AM (21 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15536144
Default Alt Text
D48070.diff (1 KB)
Attached To
Mode
D48070: libprocstat: ZFS support: Makefile: Tidy up a bit
Attached
Detach File
Event Timeline
Log In to Comment