> macOS 15.4 added the strchrnul() function in libc. [1] Here's an improvement for users of the newest macOS SDK (that includes the header files of macOS 15.4) on older macOS versions (< 15.4).
2025-05-27 Bruno Haible <br...@clisp.org> strchrnul: Fix for users of the current macOS SDK. Reported in <https://savannah.gnu.org/bugs/?67141>. * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Use gl_CHECK_FUNCS_ANDROID_MACOS instead of gl_CHECK_FUNCS_ANDROID. diff --git a/m4/strchrnul.m4 b/m4/strchrnul.m4 index 35c2ba3c42..11886ca2d0 100644 --- a/m4/strchrnul.m4 +++ b/m4/strchrnul.m4 @@ -1,5 +1,5 @@ # strchrnul.m4 -# serial 12 +# serial 13 dnl Copyright (C) 2003, 2007, 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, @@ -12,7 +12,7 @@ AC_DEFUN([gl_FUNC_STRCHRNUL] AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) AC_REQUIRE([gl_STRING_H_DEFAULTS]) - gl_CHECK_FUNCS_ANDROID([strchrnul], [[#include <string.h>]]) + gl_CHECK_FUNCS_ANDROID_MACOS([strchrnul], [[#include <string.h>]]) if test $ac_cv_func_strchrnul = no; then HAVE_STRCHRNUL=0 case "$gl_cv_onwards_func_strchrnul" in