GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler (GH-95897)

(cherry picked from commit ec2b76aa8b)

Co-authored-by: TheShermanTanker <32636402+TheShermanTanker@users.noreply.github.com>
Co-authored-by: Steve Dower <steve.dower@python.org>
This commit is contained in:
Miss Islington (bot) 2022-11-26 02:13:30 -08:00 committed by GitHub
parent 1fc2e2aa92
commit 610b7798af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,9 @@
FSCTL_GET_REPARSE_POINT is not exported with WIN32_LEAN_AND_MEAN. */
# include <windows.h>
# include <pathcch.h>
# include <lmcons.h> // UNLEN
# include "osdefs.h" // SEP
# define HAVE_SYMLINK
#endif
#ifdef __VXWORKS__
@ -430,18 +433,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