summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorKen Brown <kbrown@cornell.edu>2019-06-29 15:03:34 -0400
committerKen Brown <kbrown@cornell.edu>2019-06-29 15:03:34 -0400
commit0b2841f9fb0ffd8514b0fb99c5673adad6b07abb (patch)
tree7ffe55bddf7d528262980d3737624d6760a9c3f5 /configure.ac
parent74a5a332fee8a346cf65ed6656c1b08dc1df5fde (diff)
downloademacs-0b2841f9fb0ffd8514b0fb99c5673adad6b07abb.tar.gz
Simplify workaround for Cygwin O_PATH bug
Suggested by Paul Eggert (Bug#36405#22). * configure.ac (HAVE_CYGWIN_O_PATH_BUG): New AC_DEFINE, for Cygwin versions 3.0.0 through 3.0.7. * src/dired.c (O_PATH) [__CYGWIN__]: Remove #undef. (file_attributes) [HAVE_CYGWIN_O_PATH_BUG]: Don't use O_PATH.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 8ff0e21fbf6..774f8e5eb92 100644
--- a/configure.ac
+++ b/configure.ac
@@ -5734,6 +5734,9 @@ case $opsys,$emacs_uname_r in
AC_MSG_WARN([[building Emacs on Cygwin 1.5 is not supported.]])
echo
;;
+ cygwin,3.0.[[0-7]]'('*)
+ AC_DEFINE([HAVE_CYGWIN_O_PATH_BUG], 1,
+ [Define to 1 if opening a FIFO with O_PATH causes a hang.]);;
esac
# Remove any trailing slashes in these variables.