2023-08-16 22:26:55 +00:00
|
|
|
Index: Python/fileutils.c
|
|
|
|
--- Python/fileutils.c.orig
|
|
|
|
+++ Python/fileutils.c
|
2024-05-10 01:49:14 +00:00
|
|
|
@@ -2614,9 +2614,9 @@ done:
|
2023-08-16 22:26:55 +00:00
|
|
|
* non-opened fd in the middle.
|
|
|
|
* 2b. If fdwalk(3) isn't available, just do a plain close(2) loop.
|
|
|
|
*/
|
|
|
|
-#ifdef __FreeBSD__
|
2024-09-19 07:03:21 +00:00
|
|
|
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__SecBSD__)
|
2023-08-16 22:26:55 +00:00
|
|
|
# define USE_CLOSEFROM
|
|
|
|
-#endif /* __FreeBSD__ */
|
|
|
|
+#endif /* __FreeBSD__ || __OpenBSD__ */
|
|
|
|
|
|
|
|
#ifdef HAVE_FDWALK
|
|
|
|
# define USE_FDWALK
|