From 5e96c4ca79877cdcbd6f76184374dbdf7fe1ba57 Mon Sep 17 00:00:00 2001 From: "roberto@natty32" Date: Thu, 14 Apr 2011 09:10:03 +0200 Subject: [PATCH] fixed json support with pkg-config --- uwsgiconfig.py | 1 + 1 file changed, 1 insertion(+) diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 79e14631..867c297d 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -397,6 +397,7 @@ class uConf(object): jsonconf = spcall("pkg-config --cflags jansson") if jsonconf: self.cflags.append(jsonconf) + self.cflags.append("-DUWSGI_JSON") self.gcc_list.append('json') self.libs.append(spcall("pkg-config --libs jansson")) elif os.path.exists('/usr/include/jansson.h') or os.path.exists('/usr/local/include/jansson.h'):