statzone

DNS zone file analyzer targeted at TLD zones
Log | Files | Refs | README | LICENSE

commit c63194b913fe9809e01e6f008c03af5d56ef92c5
parent 4f4f56eefe811b6deea33c5701bb8916f164037e
Author: Frederic Cambus <fred@statdns.com>
Date:   Tue,  9 Jun 2020 15:08:55 +0200

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

Diffstat:
MCMakeLists.txt | 2+-
Msrc/statzone.c | 4+---
2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt @@ -50,7 +50,7 @@ if(NOT HAVE_PLEDGE) set (SRC ${SRC} compat/pledge.c) endif() -add_definitions(-Wall -Wextra -std=c99 -pedantic) +add_definitions(-D_GNU_SOURCE -Wall -Wextra -std=c99 -pedantic) add_executable(statzone ${SRC}) install(TARGETS statzone DESTINATION ${CMAKE_INSTALL_BINDIR}) diff --git a/src/statzone.c b/src/statzone.c @@ -4,14 +4,12 @@ * https://www.statdns.com * * Created: 2012-02-13 - * Last Updated: 2020-03-16 + * Last Updated: 2020-06-09 * * StatZone is released under the BSD 2-Clause license * See LICENSE file for details. */ -#define _POSIX_C_SOURCE 200809L - #include <err.h> #include <getopt.h> #include <inttypes.h>