Skip to content

Commit 06480b2

Browse files
authored
Allow c99 when building ZFS in the kernel tree
Commit 4a5d7f8 enabled building c99 out of the kernel tree. However, when building as part of the kernel different Makefiles are used and -std=gnu99 must additionially be added there. Reviewed-by: George Melikov <[email protected]> Reviewed-by: Giuseppe Di Natale <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes openzfs#5919
1 parent 7b0dc2a commit 06480b2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

copy-builtin

+5-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,11 @@ EOF
5959

6060
{
6161
cat <<-"EOF"
62-
ZFS_MODULE_CFLAGS = -I$(srctree)/include/zfs -I$(srctree)/include/spl
63-
ZFS_MODULE_CFLAGS += -include $(srctree)/spl_config.h -include $(srctree)/zfs_config.h
62+
ZFS_MODULE_CFLAGS = -I$(srctree)/include/zfs
63+
ZFS_MODULE_CFLAGS += -I$(srctree)/include/spl
64+
ZFS_MODULE_CFLAGS += -include $(srctree)/spl_config.h
65+
ZFS_MODULE_CFLAGS += -include $(srctree)/zfs_config.h
66+
ZFS_MODULE_CLFAGS += -std=gnu99
6467
export ZFS_MODULE_CFLAGS
6568
6669
obj-$(CONFIG_ZFS) :=

0 commit comments

Comments
 (0)