From: Carlo Bramini Date: Wed, 13 May 2026 20:05:27 +0000 (+0200) Subject: gh-148575: Use /dev/fd/ to read the set of file descriptors on Cygwin (#148576) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6854c50988761b305972e6e83b642c46cf00448;p=thirdparty%2FPython%2Fcpython.git gh-148575: Use /dev/fd/ to read the set of file descriptors on Cygwin (#148576) --- diff --git a/Modules/_posixsubprocess.c b/Modules/_posixsubprocess.c index b7f39ea3d499..9867f077faef 100644 --- a/Modules/_posixsubprocess.c +++ b/Modules/_posixsubprocess.c @@ -63,7 +63,7 @@ # endif #endif -#if defined(__FreeBSD__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__DragonFly__) +#if defined(__CYGWIN__) || defined(__FreeBSD__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__DragonFly__) # define FD_DIR "/dev/fd" #else # define FD_DIR "/proc/self/fd"