]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Allow c99 when building ZFS in the kernel tree
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 27 Mar 2017 19:31:15 +0000 (12:31 -0700)
committerGitHub <noreply@github.com>
Mon, 27 Mar 2017 19:31:15 +0000 (12:31 -0700)
Commit 4a5d7f82 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 <mail@gmelikov.ru>
Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #5919

copy-builtin

index 716d2022c759b2872673c9e3b4d7182516de5258..d04314bb362f0350fa6a748173507dd07d361651 100755 (executable)
@@ -59,8 +59,11 @@ EOF
 
 {
        cat <<-"EOF"
-       ZFS_MODULE_CFLAGS  = -I$(srctree)/include/zfs -I$(srctree)/include/spl 
-       ZFS_MODULE_CFLAGS += -include $(srctree)/spl_config.h -include $(srctree)/zfs_config.h
+       ZFS_MODULE_CFLAGS  = -I$(srctree)/include/zfs
+       ZFS_MODULE_CFLAGS += -I$(srctree)/include/spl
+       ZFS_MODULE_CFLAGS += -include $(srctree)/spl_config.h
+       ZFS_MODULE_CFLAGS += -include $(srctree)/zfs_config.h
+       ZFS_MODULE_CLFAGS += -std=gnu99
        export ZFS_MODULE_CFLAGS
 
        obj-$(CONFIG_ZFS) :=