aboutsummaryrefslogtreecommitdiff
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorSamuel Marks <807580+SamuelMarks@users.noreply.github.com>2021-06-25 02:45:18 +1000
committerGitHub <noreply@github.com>2021-06-24 17:45:18 +0100
commit19459f8ce63cc7f905e3c1a55d09d4d10d245343 (patch)
tree36e1f5ee148a11f845cdc5d22f75c1bad13105b3 /Modules/posixmodule.c
parent0acc258fe6f0ec200ca2f6f9294adbf52a244802 (diff)
downloadcpython3-19459f8ce63cc7f905e3c1a55d09d4d10d245343.tar.gz
bpo-44321: Adds `os.EX_OK` for Windows (GH-26559)
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 25ddc82cb8..73e7e60fe6 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -23,6 +23,10 @@
# include <pathcch.h>
#endif
+#if !defined(EX_OK) && defined(EXIT_SUCCESS)
+#define EX_OK EXIT_SUCCESS
+#endif
+
#ifdef __VXWORKS__
# include "pycore_bitutils.h" // _Py_popcount32()
#endif