From: Rosen Penev Date: Mon, 16 May 2022 03:36:39 +0000 (-0700) Subject: replace prefix with args X-Git-Tag: v2.39-rc1~662^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5afe34ef2bd3405d8c46dfe6b783bf0264f090ee;p=thirdparty%2Futil-linux.git replace prefix with args meson reference says in case of _GNU_SOURCE that args should be used. Signed-off-by: Rosen Penev --- diff --git a/meson.build b/meson.build index 9d51f3775e..b085c4202b 100644 --- a/meson.build +++ b/meson.build @@ -388,10 +388,10 @@ conf.set10('HAVE_DECL_CPU_ALLOC', have) have_cpu_set_t = cc.sizeof('cpu_set_t', prefix : '#define _GNU_SOURCE\n#include ') > 0 conf.set('HAVE_CPU_SET_T', have_cpu_set_t ? 1 : false) -have = cc.has_header_symbol('unistd.h', 'environ', prefix : '#define _GNU_SOURCE') +have = cc.has_header_symbol('unistd.h', 'environ', args : '-D_GNU_SOURCE') conf.set10('HAVE_ENVIRON_DECL', have) -have = cc.has_header_symbol('signal.h', 'sighandler_t', prefix : '#define _GNU_SOURCE') +have = cc.has_header_symbol('signal.h', 'sighandler_t', args : '-D_GNU_SOURCE') conf.set('HAVE_SIGHANDLER_T', have ? 1 : false) have = cc.has_function('strsignal') @@ -571,7 +571,7 @@ have = cc.has_member('struct tm', 'tm_zone', prefix : '#include ') conf.set('HAVE_STRUCT_TM_TM_ZONE', have ? 1 : false) -have = cc.has_header_symbol('time.h', 'tzname', prefix: '#define _GNU_SOURCE') +have = cc.has_header_symbol('time.h', 'tzname', args: '-D_GNU_SOURCE') conf.set('HAVE_DECL_TZNAME', have ? 1 : false) code = '''