In fdopendir.c, GNULIB_defined_DIR requires REPLACE_FCHDIR to be defined.
* m4/fchdir.m4 (gl_FUNC_FCHDIR): Define REPLACE_FCHDIR macro to 1 if
REPLACE_FCHDIR is 1.
+2023-10-02 KO Myung-Hun <komh78@gmail.com>
+
+ fchdir: Fix a compilation error on OS/2 kLIBC (regression 2023-09-29).
+ * m4/fchdir.m4 (gl_FUNC_FCHDIR): Define REPLACE_FCHDIR macro to 1 if
+ REPLACE_FCHDIR is 1.
+
2023-10-02 Bruno Haible <bruno@clisp.org>
totalorder, totalorderf, totalorderl: Fix some typos.
-# fchdir.m4 serial 31
+# fchdir.m4 serial 32
dnl Copyright (C) 2006-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,
fi
fi
- if test $HAVE_FCHDIR = 0; then
+ if test $HAVE_FCHDIR = 0 || test $REPLACE_FCHDIR = 1; then
AC_DEFINE([REPLACE_FCHDIR], [1],
[Define to 1 if gnulib's fchdir() replacement is used.])
dnl We must also replace anything that can manipulate a directory fd,