File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -83,9 +83,6 @@ foreach define: set_defines
8383 config_data.set_quoted(define[0 ], define[1 ])
8484endforeach
8585
86- # Globally define_GNU_SOURCE and therefore enable the GNU extensions
87- config_data.set(' _GNU_SOURCE' , true )
88-
8986# functions
9087check_functions = [
9188 ' clearenv' ,
@@ -97,7 +94,9 @@ foreach func: check_functions
9794 config_data.set(' HAVE_' + func.to_upper(), cc.has_function(func))
9895endforeach
9996
100- compiler_common_flags = []
97+ compiler_common_flags = [
98+ ' -D_GNU_SOURCE' ,
99+ ]
101100compiler_c_flags = []
102101compiler_cpp_flags = []
103102
Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ c_flags = [
2929 ' -D_POLKIT_BACKEND_COMPILATION' ,
3030 ' -DPACKAGE_DATA_DIR="@0@"' .format(pk_prefix / pk_datadir),
3131 ' -DPACKAGE_SYSCONF_DIR="@0@"' .format(pk_prefix / pk_sysconfdir),
32- ' -D_XOPEN_SOURCE=700' ,
33- ' -D_GNU_SOURCE=1' ,
3432]
3533
3634if js_engine == ' duktape'
You can’t perform that action at this time.
0 commit comments