Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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