Branch
Hash :
cfef893b
Author :
Date :
2025-09-20T22:45:29
sig2str: Port to Android API level 36. * m4/sig2str.m4 (gl_FUNC_SIG2STR): Use gl_CHECK_FUNCS_ANDROID to check for sig2str and str2sig instead of AC_CHECK_FUNCS. * doc/posix-functions/sig2str.texi: Document that the function is missing on Android API 35 and lower. * doc/posix-functions/str2sig.texi: Likewise.
# sig2str.m4
# serial 9
dnl Copyright (C) 2002, 2005-2006, 2009-2025 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
dnl This file is offered as-is, without any warranty.
AC_DEFUN([gl_FUNC_SIG2STR],
[
AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
gl_CHECK_FUNCS_ANDROID([sig2str], [[#include <signal.h>]])
gl_CHECK_FUNCS_ANDROID([str2sig], [[#include <signal.h>]])
if test $ac_cv_func_sig2str = no; then
HAVE_SIG2STR=0
fi
if test $ac_cv_func_str2sig = no; then
HAVE_STR2SIG=0
fi
])
# Prerequisites of lib/sig2str.c.
AC_DEFUN([gl_PREREQ_SIG2STR], [
:
])