mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
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>
This commit is contained in:
parent
21e3e1c420
commit
0ceb0036c3
2 changed files with 12 additions and 3 deletions
|
@ -556,7 +556,7 @@ AC_CHECK_FUNCS([DINFINITY DQNAN cexp chsize clog clog10 ctermid \
|
|||
fstatat futimens openat \
|
||||
sched_getaffinity sched_setaffinity sendfile pipe2 \
|
||||
posix_spawn_file_actions_addclosefrom_np \
|
||||
clearenv])
|
||||
clearenv freadlink])
|
||||
|
||||
# The newlib C library uses _NL_ prefixed locale langinfo constants.
|
||||
AC_CHECK_DECLS([_NL_NUMERIC_GROUPING], [], [], [[#include <langinfo.h>]])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue