1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 10:41:11 +02:00

53084: yet another approach to the /dev/fd autoconf test because of shells emulating /dev/fd

This commit is contained in:
Oliver Kiddle 2024-09-14 19:33:10 +02:00
parent 55ff6f8864
commit 0cd2c953b4
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2024-09-14 Oliver Kiddle <opk@zsh.org>
* 53084: configure.ac: yet another approach to the /dev/fd
autoconf test because of shells emulating /dev/fd
* 53083: configure.ac, Src/Builtins/rlimits.c: handle Haiku
specific resource limit for open vnode monitors

View file

@ -1949,7 +1949,7 @@ AH_TEMPLATE([PATH_DEV_FD],
[Define to the path of the /dev/fd filesystem.])
AC_CACHE_CHECK(for /dev/fd filesystem, zsh_cv_sys_path_dev_fd,
[for zsh_cv_sys_path_dev_fd in /proc/self/fd /dev/fd no; do
(exec 3<&0; test -e $zsh_cv_sys_path_dev_fd/3;) && break
test x`echo ok|(cat $zsh_cv_sys_path_dev_fd/3 3<&0 2>/dev/null;)` = xok && break
done])
if test x$zsh_cv_sys_path_dev_fd != xno; then
AC_DEFINE_UNQUOTED(PATH_DEV_FD, "$zsh_cv_sys_path_dev_fd")