]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
misc: only define _GNU_SOURCE if not defined
authorJason Ish <jason.ish@oisf.net>
Mon, 28 Apr 2025 17:18:03 +0000 (11:18 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 30 Apr 2025 20:22:25 +0000 (22:22 +0200)
C++ compilers on Linux (g++, clang++) appear to always define this.

src/suricata-common.h

index b018c001e383d6c385835ab76eead1876ffaf2bd..b134586328dfb7c92bfce5ed0e0b455f3536e468 100644 (file)
 #define DBG_PERF
 #endif
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
+
 #define __USE_GNU
 
 #if defined(__clang_analyzer__)