]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-148575: Use /dev/fd/ to read the set of file descriptors on Cygwin (#148576)
authorCarlo Bramini <carlo_bramini@users.sourceforge.net>
Wed, 13 May 2026 20:05:27 +0000 (22:05 +0200)
committerGitHub <noreply@github.com>
Wed, 13 May 2026 20:05:27 +0000 (20:05 +0000)
Modules/_posixsubprocess.c

index b7f39ea3d499e4cae355ae29b8053f6d683ce59a..9867f077faef7aa5c70b099d94ce53205f133151 100644 (file)
@@ -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"