2025-09-20 Paul Eggert <eggert@cs.ucla.edu>
+ fchownat: fix missing HAVE_FCHOWNAT
+ * m4/fchownat.m4 (gl_FUNC_FCHOWNAT): Use AC_CHECK_FUNCS instead of
+ AC_CHECK_FUNC, so that we define HAVE_FCHOWNAT if fchownat
+ exists. lib/fchownat.c uses HAVE_FCHOWNAT in some cases.
+
fchownat: depend on fstatat
* modules/fchownat (Depends-on): Add fstatat.
This fixes a dependency bug I introduced on 2022-03-09
# fchownat.m4
-# serial 7
+# serial 8
dnl Copyright (C) 2004-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,
AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
AC_REQUIRE([gl_FUNC_CHOWN])
- AC_CHECK_FUNC([fchownat],
+ AC_CHECK_FUNCS([fchownat],
[gl_FUNC_FCHOWNAT_DEREF_BUG(
[REPLACE_FCHOWNAT=1
AC_DEFINE([FCHOWNAT_NOFOLLOW_BUG], [1],