diff --git a/meson.build b/meson.build index 29b9ccb49..1a700e348 100644 --- a/meson.build +++ b/meson.build @@ -760,7 +760,6 @@ functions = [ 'strtoll_l', 'strtoull_l', 'symlink', - 'sysinfo', 'timegm', 'unsetenv', 'uselocale', @@ -824,6 +823,11 @@ if host_system != 'aix' functions += ['splice'] endif +# SVR4 sysinfo() does not behave the same as sysinfo() on other Unixes +if host_system != 'sunos' + functions += ['sysinfo'] +endif + foreach f : functions if cc.has_function(f) define = 'HAVE_' + f.underscorify().to_upper()