* m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Use gl_CHECK_FUNCS_ANDROID
instead of AC_CHECK_FUNCS_ONCE.
+2023-01-09 Bruno Haible <bruno@clisp.org>
+
+ getsubopt: Fix compilation error in C++ mode on Android.
+ * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Use gl_CHECK_FUNCS_ANDROID
+ instead of AC_CHECK_FUNCS_ONCE.
+
2023-01-09 Bruno Haible <bruno@clisp.org>
malloc-h: Fix compilation errors in C++ mode on Android.
-# getsubopt.m4 serial 5
+# getsubopt.m4 serial 6
dnl Copyright (C) 2004, 2007, 2009-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,
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
- AC_CHECK_FUNCS_ONCE([getsubopt])
+ gl_CHECK_FUNCS_ANDROID([getsubopt],
+ [[#include <stdlib.h>
+ #include <unistd.h>
+ ]])
if test $ac_cv_func_getsubopt = no; then
HAVE_GETSUBOPT=0
fi