From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id A8E3C3858D32; Thu, 13 Jul 2023 17:58:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A8E3C3858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1689271136; bh=42VPqODhszLNvlTYLaIm8/4h9gmr+OzA+WQpKemearc=; h=From:To:Subject:Date:From; b=NQL3QsnzyfDQ7HI/YOR21mu5muOrVEY7kb6O9a+cidUwh3kbAu16mDCCDw6B84csp 2DySzQ4gifQm2Ne7m4lXNsDP6B1krqZhX3KH+RGEW+UZbcUCRRep7nwThPCJxT3GeJ IbOMhiRhg9o0fQSQz4GYZXmQQ7Ad8jqOUyIMadDw= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: newlib-cvs@sourceware.org Subject: [newlib-cygwin/main] newlib: posix: add HAVE_OPENDIR build condition for [n]ftw.c X-Act-Checkin: newlib-cygwin X-Git-Author: Alexey Lapshin X-Git-Refname: refs/heads/main X-Git-Oldrev: c836d26d768b9db1b948ba5dcef571cd356cfb6c X-Git-Newrev: b7c3a63bb3c4dab861b2bce8793b8dfb36151799 Message-Id: <20230713175856.A8E3C3858D32@sourceware.org> Date: Thu, 13 Jul 2023 17:58:56 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Db7c3a63bb3c= 4dab861b2bce8793b8dfb36151799 commit b7c3a63bb3c4dab861b2bce8793b8dfb36151799 Author: Alexey Lapshin AuthorDate: Thu Jul 13 09:52:26 2023 +0000 Commit: Corinna Vinschen CommitDate: Thu Jul 13 19:58:29 2023 +0200 newlib: posix: add HAVE_OPENDIR build condition for [n]ftw.c Diff: --- newlib/libc/posix/ftw.c | 3 +++ newlib/libc/posix/nftw.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/newlib/libc/posix/ftw.c b/newlib/libc/posix/ftw.c index 18cfc24cbf1e..79e63582ce7d 100644 --- a/newlib/libc/posix/ftw.c +++ b/newlib/libc/posix/ftw.c @@ -1,3 +1,5 @@ +#ifndef HAVE_OPENDIR + /* * Copyright =C2=A9 2005-2020 Rich Felker, et al. * @@ -31,3 +33,4 @@ int ftw(const char *path, int (*fn)(const char *, const s= truct stat *, int), int return nftw(path, (int (*)())fn, fd_limit, FTW_PHYS); } =20 +#endif /* ! HAVE_OPENDIR */ diff --git a/newlib/libc/posix/nftw.c b/newlib/libc/posix/nftw.c index c45cc8f17208..17c5bfd1e3aa 100644 --- a/newlib/libc/posix/nftw.c +++ b/newlib/libc/posix/nftw.c @@ -1,3 +1,5 @@ +#ifndef HAVE_OPENDIR + /* * Copyright =C2=A9 2005-2020 Rich Felker, et al. * @@ -154,3 +156,4 @@ int nftw(const char *path, int (*fn)(const char *, cons= t struct stat *, int, str return r; } =20 +#endif /* ! HAVE_OPENDIR */