logswan

Fast Web log analyzer using probabilistic data structures
Log | Files | Refs | README | LICENSE

commit a441ac7b332e356938a276b2f03c416ebf6c029f
parent 31fb8411f3a50a2fc4a48ed5f9978f78d21bad0d
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Mon, 22 Jun 2015 23:24:30 +0200

Linking against Jansson library + adding include

Diffstat:
MCMakeLists.txt | 3++-
Msrc/logswan.c | 1+
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -12,10 +12,11 @@ cmake_minimum_required (VERSION 2.6) project (logswan C) find_library(LIB_GEOIP NAMES GeoIP REQUIRED) +find_library(LIB_JANSSON NAMES jansson REQUIRED) include_directories(/usr/local/include) add_definitions(-Wall -Wextra -Werror -std=c99 -pedantic) add_executable(logswan src/logswan.c src/parse.c) -target_link_libraries(logswan ${LIB_GEOIP}) +target_link_libraries(logswan ${LIB_GEOIP} ${LIB_JANSSON}) diff --git a/src/logswan.c b/src/logswan.c @@ -22,6 +22,7 @@ #include <time.h> #include <GeoIP.h> +#include <jansson.h> #include "parse.h"