diff options
author | Tomas Volf <~@wolfsden.cz> | 2024-08-10 00:54:30 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-10-20 21:22:23 +0200 |
commit | 0ceb0036c3a2efdd8d5b0da0c68d15b67fe24689 (patch) | |
tree | 26ac1e5144973f4bcaca38511f65a418dbdb8735 /test-suite/tests/filesys.test | |
parent | 21e3e1c420ace116961ecdf0001c289c28fa73c6 (diff) | |
download | guile-0ceb0036c3a2efdd8d5b0da0c68d15b67fe24689.tar.gz |
filesys.c: Fix readlink for ports on Darwin.
When passed a port, `readlink' relies on the Linux specific behavior of
empty c_path meaning "the fd itself". That does not work on Darwin.
Since there is no branch that would yield both fd and c_path, fallback
to freadlink when __APPLE__ is defined.
* libguile/filesys.c (do_readlink): Call freadlink for !__APPLE__.
* configure.ac (AC_CHECK_FUNCS): Add freadlink.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'test-suite/tests/filesys.test')
0 files changed, 0 insertions, 0 deletions