logswan

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

commit 6b886305a18d3d6b9deae71d24f2d422e4e5123a
parent 63ef4f72e564f9d90139c6d5f28ce3be3599a042
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue,  9 Jun 2020 15:57:47 +0200

Define _GNU_SOURCE in CMakeLists.txt to avoid cluttering source files.

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

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -69,7 +69,7 @@ set(GEOIP2DIR ${CMAKE_INSTALL_PREFIX}/share/dbip CACHE PATH "Path to GeoIP2 databases") set(GEOIP2DB "dbip-country-lite.mmdb" CACHE PATH "GeoIP2 database file") -add_definitions(-Wall -Wextra -std=c11 -pedantic) +add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c11 -pedantic) add_definitions(-DGEOIP2DIR="${GEOIP2DIR}/") add_definitions(-DGEOIP2DB="${GEOIP2DB}") add_executable(logswan ${SRC} ${DEPS}) diff --git a/src/logswan.c b/src/logswan.c @@ -10,8 +10,6 @@ * See LICENSE file for details. */ -#define _XOPEN_SOURCE 600 - #include <sys/socket.h> #include <sys/stat.h> #include <sys/time.h>