diff options
author | Sam James <sam@gentoo.org> | 2022-10-30 17:36:29 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-10-30 17:43:14 +0000 |
commit | 25ebba451cae86cda8e460b42cdab7c62924d206 (patch) | |
tree | 8d170d2ea337055c871efd4b820a0dc76e072d83 /m4/ax_check_posix_sysinfo.m4 | |
parent | 8a212466702f0ee0f101da245eb7b6a837515784 (diff) | |
download | autoconf-archive-25ebba451cae86cda8e460b42cdab7c62924d206.tar.gz |
AX_CHECK_POSIX_SYSINFO: fix -Wstrict-prototypes
Preparation for Clang 16.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'm4/ax_check_posix_sysinfo.m4')
-rw-r--r-- | m4/ax_check_posix_sysinfo.m4 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/ax_check_posix_sysinfo.m4 b/m4/ax_check_posix_sysinfo.m4 index 0df3873..0b53d16 100644 --- a/m4/ax_check_posix_sysinfo.m4 +++ b/m4/ax_check_posix_sysinfo.m4 @@ -20,14 +20,14 @@ # and this notice are preserved. This file is offered as-is, without any # warranty. -#serial 7 +#serial 8 AU_ALIAS([AG_CHECK_POSIX_SYSINFO], [AX_CHECK_POSIX_SYSINFO]) AC_DEFUN([AX_CHECK_POSIX_SYSINFO],[ AC_MSG_CHECKING([whether sysinfo(2) is POSIX]) AC_CACHE_VAL([ax_cv_posix_sysinfo],[ AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <sys/systeminfo.h> -int main() { char z[ 256 ]; +int main(void) { char z[ 256 ]; long sz = sysinfo( SI_SYSNAME, z, sizeof( z )); return (sz > 0) ? 0 : 1; }]])],[ax_cv_posix_sysinfo=yes],[ax_cv_posix_sysinfo=no],[ax_cv_posix_sysinfo=no] ) # end of TRY_RUN]) # end of CACHE_VAL |