summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index da42640..807b321 100644
--- a/Makefile
+++ b/Makefile
@@ -35,6 +35,10 @@ endif
CFLAGS+=$(EXTRA_CFLAGS)
+# Fallback for libyajl 1 which did not include yajl_version.h. We need
+# YAJL_MAJOR from that file to decide which code path should be used.
+CFLAGS += -idirafter $(TOPDIR)/yajl-fallback
+
OBJS:=$(wildcard src/*.c *.c)
OBJS:=$(OBJS:.c=.o)