endif
endforeach
-foreach f : ['strtof', 'mkostemp', 'timespec_get', 'memfd_create', 'random_r', 'flock']
+foreach f : ['strtof', 'mkostemp', 'timespec_get', 'memfd_create', 'random_r', 'flock', 'strtok_r']
if cc.has_function(f)
pre_args += '-DHAVE_@0@'.format(f.to_upper())
endif
with_symbols_check = prog_dumpbin.found() and with_tests
symbols_check_args = ['--dumpbin', prog_dumpbin.path()]
else
- prog_nm = find_program('nm', required : false)
- with_symbols_check = prog_nm.found() and with_tests
+ prog_nm = find_program('nm')
+ with_symbols_check = with_tests
symbols_check_args = ['--nm', prog_nm.path()]
endif