SICS compiles under RHEL7

This commit is contained in:
2017-01-13 15:43:39 +01:00
parent 2673bb3b6d
commit 2670bafe53
7 changed files with 56 additions and 7 deletions

View File

@ -31,7 +31,7 @@
#include <lld_blob.h>
#include <dynstring.h>
#include <stptok.h>
#include <json/json.h>
#include <json-c/json.h>
#define OOM -5001 /* out of memory */
#define TO -5002 /* timeout */
@ -550,7 +550,7 @@ static int WriteResponseTask(void *pData)
return 1;
} else if(tokerr != json_tokener_success) {
traceIO("RO","JSON parsing error %s on %s from %s %d",
json_tokener_errors[tokerr], pText, self->host, self->jtok->char_offset);
json_tokener_error_desc(tokerr), pText, self->host, self->jtok->char_offset);
ANETreadConsume(self->handle,length);
return 1;
}