From 06480b2790e4a07fefa5a2bbaaf1e26d1eb00d33 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 27 Mar 2017 12:31:15 -0700 Subject: [PATCH] Allow c99 when building ZFS in the kernel tree 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 Reviewed-by: Giuseppe Di Natale Signed-off-by: Brian Behlendorf Closes #5919 --- copy-builtin | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/copy-builtin b/copy-builtin index 716d2022c7..d04314bb36 100755 --- a/copy-builtin +++ b/copy-builtin @@ -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) :=