From: Jason Ish Date: Mon, 28 Apr 2025 17:18:03 +0000 (-0600) Subject: misc: only define _GNU_SOURCE if not defined X-Git-Tag: suricata-8.0.0-rc1~397 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=23eaa65185fcbf498cc429567c1e8c115f094066;p=thirdparty%2Fsuricata.git misc: only define _GNU_SOURCE if not defined C++ compilers on Linux (g++, clang++) appear to always define this. --- diff --git a/src/suricata-common.h b/src/suricata-common.h index b018c001e3..b134586328 100644 --- a/src/suricata-common.h +++ b/src/suricata-common.h @@ -30,7 +30,10 @@ #define DBG_PERF #endif +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif + #define __USE_GNU #if defined(__clang_analyzer__)