summaryrefslogtreecommitdiff
path: root/m4/posix_openpt.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/posix_openpt.m4')
-rw-r--r--m4/posix_openpt.m44
1 files changed, 2 insertions, 2 deletions
diff --git a/m4/posix_openpt.m4 b/m4/posix_openpt.m4
index 6ab66f5abf..f5912a12bb 100644
--- a/m4/posix_openpt.m4
+++ b/m4/posix_openpt.m4
@@ -1,4 +1,4 @@
-# posix_openpt.m4 serial 2
+# posix_openpt.m4 serial 3
dnl Copyright (C) 2011-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_POSIX_OPENPT],
dnl Persuade Solaris <stdlib.h> to declare posix_openpt().
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS])
- AC_CHECK_FUNCS_ONCE([posix_openpt])
+ gl_CHECK_FUNCS_ANDROID([posix_openpt], [[#include <stdlib.h>]])
if test $ac_cv_func_posix_openpt != yes; then
dnl The system does not have posix_openpt.
HAVE_POSIX_OPENPT=0