diff --git a/meson.build b/meson.build index d32cece63..d974a8392 100644 --- a/meson.build +++ b/meson.build @@ -421,7 +421,7 @@ have = cc.has_function('openpty', prefix: '#include ', args: '-D_GNU_SOUR srcconf.set10('HAVE_OPENPTY', have) have_func_strerror_r = cc.has_function('strerror_r', prefix: '#include ', args: '-D_GNU_SOURCE') -srcconf.set10('HAVE_STRERROR_R', have) +srcconf.set10('HAVE_STRERROR_R', have_func_strerror_r) have_func_strerror_r_char_p = false