Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add conditional handling for fchdir and chdir functions #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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