summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorSamuel Marks <807580+SamuelMarks@users.noreply.github.com>2021-06-24 16:45:18 (GMT)
committerGitHub <noreply@github.com>2021-06-24 16:45:18 (GMT)
commit19459f8ce63cc7f905e3c1a55d09d4d10d245343 (patch)
tree36e1f5ee148a11f845cdc5d22f75c1bad13105b3 /Modules/posixmodule.c
parent0acc258fe6f0ec200ca2f6f9294adbf52a244802 (diff)
downloadcpython-19459f8ce63cc7f905e3c1a55d09d4d10d245343.zip
cpython-19459f8ce63cc7f905e3c1a55d09d4d10d245343.tar.gz
cpython-19459f8ce63cc7f905e3c1a55d09d4d10d245343.tar.bz2
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 25ddc82..73e7e60 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