summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-04-08 14:05:47 +0200
committerMichael Stapelberg <michael@stapelberg.de>2012-04-08 14:05:47 +0200
commit1b3aa404858b476015a2b29d0c42f7dbbed915bc (patch)
tree4d4baadd7d64dace692c00f90c4c6bab21f0c76d /Makefile
parent9d7b69652c0e45014e2934f8a0358b64928539ec (diff)
add yajl compat code
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)