summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorTheShermanTanker <32636402+TheShermanTanker@users.noreply.github.com>2022-11-26 09:31:42 (GMT)
committerGitHub <noreply@github.com>2022-11-26 09:31:42 (GMT)
commitec2b76aa8b7c6313293ff9c6814e8bc31e08fcaf (patch)
treead4f9cda19f91f3d17ed75f607526e131361b9d8 /Modules
parenta86d8545221b16e714ffe3bda5afafc1d4748d13 (diff)
downloadcpython-ec2b76aa8b7c6313293ff9c6814e8bc31e08fcaf.zip
cpython-ec2b76aa8b7c6313293ff9c6814e8bc31e08fcaf.tar.gz
cpython-ec2b76aa8b7c6313293ff9c6814e8bc31e08fcaf.tar.bz2
GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler (#95897)
Co-authored-by: Steve Dower <steve.dower@python.org>
Diffstat (limited to 'Modules')
-rw-r--r--Modules/posixmodule.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 8185517..95ecf1c 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -16,6 +16,9 @@
#ifdef MS_WINDOWS
# include <windows.h>
# include <pathcch.h>
+# include <lmcons.h> // 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 <process.h>
# 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 <malloc.h>
-# include <windows.h>
-# include <shellapi.h> // ShellExecute()
-# include <lmcons.h> // UNLEN
-# define HAVE_SYMLINK
#endif /* _MSC_VER */
#ifndef MAXPATHLEN