Bug #450 » 0047-Meson-Avoid-duplicate-localtime_r-check.patch
| 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 | ||
|---|---|---|
|
'_strcoll',
|
||
|
'_stricoll',
|
||
|
'fcntl',
|
||
|
'ioctl',
|
||
|
'localtime_r'
|
||
|
'ioctl'
|
||
|
]
|
||
|
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'
|
||
|
]
|
||