From: Dong-hee Na Date: Fri, 5 May 2023 04:32:28 +0000 (+0900) Subject: [3.11] gh-104106: Add gcc fallback of mkfifoat/mknodat for macOS (gh-104129) (gh... X-Git-Tag: v3.11.4~115 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81902d3ed3c4119a5c4604547fa941f3e3448114;p=thirdparty%2FPython%2Fcpython.git [3.11] gh-104106: Add gcc fallback of mkfifoat/mknodat for macOS (gh-104129) (gh-104187) gh-104106: Add gcc fallback of mkfifoat/mknodat for macOS (gh-104129) --- diff --git a/Misc/NEWS.d/next/Build/2023-05-04-10-56-14.gh-issue-104106.-W9BJS.rst b/Misc/NEWS.d/next/Build/2023-05-04-10-56-14.gh-issue-104106.-W9BJS.rst new file mode 100644 index 000000000000..900e5bd61d60 --- /dev/null +++ b/Misc/NEWS.d/next/Build/2023-05-04-10-56-14.gh-issue-104106.-W9BJS.rst @@ -0,0 +1 @@ +Add gcc fallback of mkfifoat/mknodat for macOS. Patch by Dong-hee Na. diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 613b86f09c9e..c825aeedcf08 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -169,6 +169,14 @@ # define HAVE_PWRITEV_RUNTIME (pwritev != NULL) # endif +# ifdef HAVE_MKFIFOAT +# define HAVE_MKFIFOAT_RUNTIME (mkfifoat != NULL) +# endif + +# ifdef HAVE_MKNODAT +# define HAVE_MKNODAT_RUNTIME (mknodat != NULL) +# endif + #endif #ifdef HAVE_FUTIMESAT