From a9c0b44ce12a91681b15323a6abacb8006c67e5e 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 b3052a2f..98bfbcf8 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