summaryrefslogtreecommitdiffstats
path: root/config/Rules.am
diff options
context:
space:
mode:
authorMatthew Ahrens <[email protected]>2017-02-08 09:27:48 -0800
committerBrian Behlendorf <[email protected]>2017-02-08 09:27:48 -0800
commit4a5d7f82679d848bcfb95d6c841f0418b24bfeab (patch)
tree05fc645e5ec3ddbdc7f9a8b71baa4e9c406cebbc /config/Rules.am
parent23d70cdef108005ecf4d862e0af01d08dabbc9c7 (diff)
Allow c99 code to compile
Add the appropriate compiler flags to accept c99 code. This will help to minimize differences with upstream, and aid porting changes. One change was necessary in zvol.c because the DEFINE_IDA() macro does not work with the new compiler flags. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Chunwei Chen <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Matthew Ahrens <[email protected]> Closes #5756
Diffstat (limited to 'config/Rules.am')
-rw-r--r--config/Rules.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/Rules.am b/config/Rules.am
index 20a21e972..1d39e7779 100644
--- a/config/Rules.am
+++ b/config/Rules.am
@@ -5,6 +5,7 @@ AM_CFLAGS = ${DEBUG_CFLAGS} -Wall -Wstrict-prototypes
AM_CFLAGS += ${NO_UNUSED_BUT_SET_VARIABLE}
AM_CFLAGS += ${NO_BOOL_COMPARE}
AM_CFLAGS += -fno-strict-aliasing
+AM_CFLAGS += -std=gnu99
AM_CPPFLAGS = -D_GNU_SOURCE -D__EXTENSIONS__ -D_REENTRANT
AM_CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS -D_FILE_OFFSET_BITS=64
AM_CPPFLAGS += -D_LARGEFILE64_SOURCE -DHAVE_LARGE_STACKS=1