From 9b533ad3855876ab435f338e40cf59e209e22592 Mon Sep 17 00:00:00 2001 From: vruano Date: Thu, 3 May 2018 22:21:40 -0400 Subject: [PATCH] Added -std=c99 to address a compilation problem in travis. --- src/main/c/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/c/Makefile b/src/main/c/Makefile index 7401366..57e75f7 100644 --- a/src/main/c/Makefile +++ b/src/main/c/Makefile @@ -3,7 +3,7 @@ $(error $$(JAVA_HOME) is not defined) endif JNI_INCLUDE_DIRS=$(addprefix -I,$(shell find $(JAVA_HOME)/include -type d)) -CFLAGS=-ggdb -O2 -Wall -fPIC $(JNI_INCLUDE_DIRS) +CFLAGS=-ggdb -O2 -Wall -std=gnu99 -D_BSD_SOURCE -fPIC $(JNI_INCLUDE_DIRS) CC=gcc #OS-dependent extension lookup