From d2ec1d0a19675aee36054467a9ae30072db563f8 Mon Sep 17 00:00:00 2001 From: KO Myung-Hun Date: Mon, 2 Oct 2023 23:07:43 +0900 Subject: [PATCH] fchdir: Fix a compilation error on OS/2 kLIBC (regression 2023-09-29). 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. --- ChangeLog | 6 ++++++ m4/fchdir.m4 | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0472570f49..a8323ba86c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2023-10-02 KO Myung-Hun + + 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 totalorder, totalorderf, totalorderl: Fix some typos. diff --git a/m4/fchdir.m4 b/m4/fchdir.m4 index ff92ceca2e..d160e49c8a 100644 --- a/m4/fchdir.m4 +++ b/m4/fchdir.m4 @@ -1,4 +1,4 @@ -# 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, @@ -24,7 +24,7 @@ AC_DEFUN([gl_FUNC_FCHDIR], 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, -- 2.39.5