From a5bef3ab51cf4b6557688a7530f4de822cb5a32d Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 28 Apr 2011 20:25:57 +0200 Subject: [PATCH] yajl compatibility: forgot add_subscription (Thanks badboy) --- src/ipc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ipc.c b/src/ipc.c index d2f0def0..3b4bb524 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -304,8 +304,13 @@ IPC_HANDLER(get_outputs) { * Callback for the YAJL parser (will be called when a string is parsed). * */ +#if YAJL_MAJOR >= 2 +static int add_subscription(void *extra, const unsigned char *s, + size_t len) { +#else static int add_subscription(void *extra, const unsigned char *s, unsigned int len) { +#endif ipc_client *client = extra; DLOG("should add subscription to extra %p, sub %.*s\n", client, len, s); -- 2.39.5