From ec2b76aa8b7c6313293ff9c6814e8bc31e08fcaf Mon Sep 17 00:00:00 2001 From: TheShermanTanker <32636402+TheShermanTanker@users.noreply.github.com> Date: Sat, 26 Nov 2022 17:31:42 +0800 Subject: [PATCH] GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler (#95897) Co-authored-by: Steve Dower --- Modules/posixmodule.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 8185517b06b5dd..95ecf1c7c4b28c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -16,6 +16,9 @@ #ifdef MS_WINDOWS # include # include +# include // UNLEN +# include "osdefs.h" // SEP +# define HAVE_SYMLINK #endif #ifdef __VXWORKS__ @@ -426,18 +429,7 @@ extern char *ctermid_r(char *); # ifdef HAVE_PROCESS_H # include # endif -# ifndef IO_REPARSE_TAG_SYMLINK -# define IO_REPARSE_TAG_SYMLINK (0xA000000CL) -# endif -# ifndef IO_REPARSE_TAG_MOUNT_POINT -# define IO_REPARSE_TAG_MOUNT_POINT (0xA0000003L) -# endif -# include "osdefs.h" // SEP # include -# include -# include // ShellExecute() -# include // UNLEN -# define HAVE_SYMLINK #endif /* _MSC_VER */ #ifndef MAXPATHLEN