Project

General

Profile

Bug #450 » 0036-Meson-Avoid-duplicate-localtime_r-check.patch

S3_2, S3_1 - Marko Lindqvist, 04/14/2024 03:28 AM

View differences:

gen_headers/meson_fc_config.h.in
/* inet_pton() available */
#mesondefine HAVE_INET_PTON
/* localtime_r() available */
#mesondefine HAVE_LOCALTIME_R
/* opendir() available */
#mesondefine HAVE_OPENDIR
meson.build
'_stricoll',
'fcntl',
'ioctl',
'va_copy',
'localtime_r'
'va_copy'
]
foreach func : priv_functions
......
endif
endforeach
priv_liblua_functions = [
'localtime_r'
]
foreach func : priv_liblua_functions
if c_compiler.has_function(func,
dependencies: net_dep,
args: ['-O'])
priv_conf_data.set('HAVE_' + func.underscorify().to_upper(), 1)
liblua_conf_data.set('HAVE_' + func.underscorify().to_upper(), 1)
endif
endforeach
liblua_functions = [
'mkstemp',
'popen',
......
'_longjmp',
'_setjmp',
'gmtime_r',
'localtime_r',
'fseeko'
]
(2-2/2)