Skip to content

Conversation

@kateinoigakukun
Copy link

Define preprocessor conditions for HAVE_FCHDIR to handle platforms without fchdir. On these platforms, pretend that FTS_NOCHDIR is always set.

This change is necessary to build the fts module on the top of the WASI and wasi-libc, which doesn't provide the fchdir.

Define preprocessor conditions for `HAVE_FCHDIR` to handle platforms without
fchdir. On these platforms, pretend that `FTS_NOCHDIR` is always set.

This change is necessary to build the `fts` module on the top of the WASI and
wasi-libc, which doesn't provide the `fchdir`.
sunfishcode pushed a commit to WebAssembly/wasi-libc that referenced this pull request Sep 25, 2024
Close #520

Add FTS implementation derived from musl-fts with a few modifications.
The compiled fts.o is included in the libc.a archive, and the fts.h
header is installed in the sysroot (`include/fts.h`).

* fts/musl-fts: Add a copy of the musl-fts sources with modifications.
* fts/patches: A set of patches to apply to the musl-fts sources.
* Upstream pull request: void-linux/musl-fts#14
* fts/update-musl-fts.sh: A script to update the musl-fts sources with
the patches applied.
* fts/config.h: A configuration header included by the musl-fts sources.
* test/smoke: Add a test suite for wasi-libc specific features that
libc-test does not cover.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant