summaryrefslogtreecommitdiff
path: root/m4/reallocarray.m4
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2023-01-09 17:29:03 +0100
committerBruno Haible <bruno@clisp.org>2023-01-09 17:29:03 +0100
commit41a04c574dd16daf54ddc23123dc38cecb0721e4 (patch)
tree6d48dae88ee6f22593f92c105756afde987cb720 /m4/reallocarray.m4
parent24b3161dc826844f2b9ae38fb0e979b036179b9c (diff)
downloadgnulib-41a04c574dd16daf54ddc23123dc38cecb0721e4.tar.gz
reallocarray: Fix compilation error in C++ mode on Android.
* m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Use gl_CHECK_FUNCS_ANDROID instead of AC_CHECK_FUNCS.
Diffstat (limited to 'm4/reallocarray.m4')
-rw-r--r--m4/reallocarray.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/reallocarray.m4 b/m4/reallocarray.m4
index 1607b7a9ed..4be7cd1be2 100644
--- a/m4/reallocarray.m4
+++ b/m4/reallocarray.m4
@@ -1,4 +1,4 @@
-# reallocarray.m4 serial 3
+# reallocarray.m4 serial 4
dnl Copyright (C) 2017-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -11,7 +11,7 @@ AC_DEFUN([gl_FUNC_REALLOCARRAY],
AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
AC_REQUIRE([gl_CHECK_MALLOC_PTRDIFF])
- AC_CHECK_FUNCS([reallocarray])
+ gl_CHECK_FUNCS_ANDROID([reallocarray], [[#include <stdlib.h>]])
if test "$ac_cv_func_reallocarray" = no; then
HAVE_REALLOCARRAY=0
elif test "$gl_cv_malloc_ptrdiff" = no; then