]> git.droids-corp.org - dpdk.git/blobdiff - lib/meson.build
mk: build with _GNU_SOURCE defined by default
[dpdk.git] / lib / meson.build
index 3acc67e6ed434836650c2871e7c22fa5cd8087bd..24351cc40a13695374d3f0cea28853f1cd59a39b 100644 (file)
@@ -32,6 +32,10 @@ if cc.has_argument('-Wno-format-truncation')
 endif
 
 enabled_libs = [] # used to print summary at the end
 endif
 
 enabled_libs = [] # used to print summary at the end
+
+# -D_GNU_SOURCE unconditionally
+default_cflags += '-D_GNU_SOURCE'
+
 foreach l:libraries
        build = true
        name = l
 foreach l:libraries
        build = true
        name = l