summaryrefslogtreecommitdiffstats
path: root/Modules/clinic
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-01-13 08:46:04 (GMT)
committerGitHub <noreply@github.com>2022-01-13 08:46:04 (GMT)
commita6ca8eee2254762422f90cf94fbaac34f85db780 (patch)
tree6017b6edc8445b18afc5ec23c5e75a4bdb983ba5 /Modules/clinic
parent1de60155d5d01be2924e72fb68dd13d4fd00acd7 (diff)
downloadcpython-a6ca8eee2254762422f90cf94fbaac34f85db780.zip
cpython-a6ca8eee2254762422f90cf94fbaac34f85db780.tar.gz
cpython-a6ca8eee2254762422f90cf94fbaac34f85db780.tar.bz2
bpo-46315: Add ifdef HAVE_ feature checks for WASI compatibility (GH-30507)
Diffstat (limited to 'Modules/clinic')
-rw-r--r--Modules/clinic/posixmodule.c.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/Modules/clinic/posixmodule.c.h b/Modules/clinic/posixmodule.c.h
index 86da087..282a541 100644
--- a/Modules/clinic/posixmodule.c.h
+++ b/Modules/clinic/posixmodule.c.h
@@ -1831,6 +1831,8 @@ exit:
#endif /* defined(HAVE_SYSTEM) && !defined(MS_WINDOWS) */
+#if defined(HAVE_UMASK)
+
PyDoc_STRVAR(os_umask__doc__,
"umask($module, mask, /)\n"
"--\n"
@@ -1859,6 +1861,8 @@ exit:
return return_value;
}
+#endif /* defined(HAVE_UMASK) */
+
PyDoc_STRVAR(os_unlink__doc__,
"unlink($module, /, path, *, dir_fd=None)\n"
"--\n"
@@ -8812,6 +8816,10 @@ exit:
#define OS_SYSTEM_METHODDEF
#endif /* !defined(OS_SYSTEM_METHODDEF) */
+#ifndef OS_UMASK_METHODDEF
+ #define OS_UMASK_METHODDEF
+#endif /* !defined(OS_UMASK_METHODDEF) */
+
#ifndef OS_UNAME_METHODDEF
#define OS_UNAME_METHODDEF
#endif /* !defined(OS_UNAME_METHODDEF) */
@@ -9295,4 +9303,4 @@ exit:
#ifndef OS_WAITSTATUS_TO_EXITCODE_METHODDEF
#define OS_WAITSTATUS_TO_EXITCODE_METHODDEF
#endif /* !defined(OS_WAITSTATUS_TO_EXITCODE_METHODDEF) */
-/*[clinic end generated code: output=05505f171cdcff72 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=d95ba7b0b9c52685 input=a9049054013a1b77]*/