summaryrefslogtreecommitdiffstats
path: root/lib/Makefile
diff options
context:
space:
mode:
authorGeorg Sauthoff <mail@georg.so>2016-08-27 08:47:50 (GMT)
committerGeorg Sauthoff <mail@georg.so>2016-08-27 13:24:50 (GMT)
commit681d5010d53cc2631ad96afa5dfc7ea70f13e5de (patch)
treebe253ab252efdf971f3e4e49dc144b7ac8be80fe /lib/Makefile
parent584e1fe92ade602404d668a9d83e9264709d5dbe (diff)
downloadlz4-681d5010d53cc2631ad96afa5dfc7ea70f13e5de.zip
lz4-681d5010d53cc2631ad96afa5dfc7ea70f13e5de.tar.gz
lz4-681d5010d53cc2631ad96afa5dfc7ea70f13e5de.tar.bz2
use gnu c99 to get both c99 and POSIX
when compiling with gcc fixes fileno() implicitly defined on Linx and compile error on Solaris 10
Diffstat (limited to 'lib/Makefile')
-rw-r--r--lib/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile
index 879d2b3..52e0f95 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -41,7 +41,7 @@ DESTDIR?=
PREFIX ?= /usr/local
CPPFLAGS= -DXXH_NAMESPACE=LZ4_
CFLAGS ?= -O3
-CFLAGS += -std=c99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -pedantic
+CFLAGS += -std=gnu99 -Wall -Wextra -Wundef -Wshadow -Wcast-align -Wcast-qual -Wstrict-prototypes -pedantic
FLAGS = $(CPPFLAGS) $(CFLAGS) $(LDFLAGS)
LIBDIR?= $(PREFIX)/lib