Skip to content

Commit 82f4a62

Browse files
notpeelzjrybar-rh
authored andcommitted
Fix duplicate feature test macros
1 parent 8cc8171 commit 82f4a62

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

meson.build

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ foreach define: set_defines
8383
config_data.set_quoted(define[0], define[1])
8484
endforeach
8585

86-
# Globally define_GNU_SOURCE and therefore enable the GNU extensions
87-
config_data.set('_GNU_SOURCE', true)
88-
8986
# functions
9087
check_functions = [
9188
'clearenv',
@@ -97,7 +94,9 @@ foreach func: check_functions
9794
config_data.set('HAVE_' + func.to_upper(), cc.has_function(func))
9895
endforeach
9996

100-
compiler_common_flags = []
97+
compiler_common_flags = [
98+
'-D_GNU_SOURCE',
99+
]
101100
compiler_c_flags = []
102101
compiler_cpp_flags = []
103102

src/polkitbackend/meson.build

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff 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

3634
if js_engine == 'duktape'

0 commit comments

Comments
 (0)