Skip to content

Commit

Permalink
Fix duplicate feature test macros
Browse files Browse the repository at this point in the history
  • Loading branch information
notpeelz authored and jrybar-rh committed Aug 22, 2024
1 parent 8cc8171 commit 82f4a62
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 3 additions & 4 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ foreach define: set_defines
config_data.set_quoted(define[0], define[1])
endforeach

# Globally define_GNU_SOURCE and therefore enable the GNU extensions
config_data.set('_GNU_SOURCE', true)

# functions
check_functions = [
'clearenv',
Expand All @@ -97,7 +94,9 @@ foreach func: check_functions
config_data.set('HAVE_' + func.to_upper(), cc.has_function(func))
endforeach

compiler_common_flags = []
compiler_common_flags = [
'-D_GNU_SOURCE',
]
compiler_c_flags = []
compiler_cpp_flags = []

Expand Down
2 changes: 0 additions & 2 deletions src/polkitbackend/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ c_flags = [
'-D_POLKIT_BACKEND_COMPILATION',
'-DPACKAGE_DATA_DIR="@0@"'.format(pk_prefix / pk_datadir),
'-DPACKAGE_SYSCONF_DIR="@0@"'.format(pk_prefix / pk_sysconfdir),
'-D_XOPEN_SOURCE=700',
'-D_GNU_SOURCE=1',
]

if js_engine == 'duktape'
Expand Down

0 comments on commit 82f4a62

Please sign in to comment.