Skip to content

Commit 610b779

Browse files
miss-islingtonTheShermanTankerzooba
authored
GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler (GH-95897)
(cherry picked from commit ec2b76a) Co-authored-by: TheShermanTanker <[email protected]> Co-authored-by: Steve Dower <[email protected]>
1 parent 1fc2e2a commit 610b779

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

Modules/posixmodule.c

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
FSCTL_GET_REPARSE_POINT is not exported with WIN32_LEAN_AND_MEAN. */
2222
# include <windows.h>
2323
# include <pathcch.h>
24+
# include <lmcons.h> // UNLEN
25+
# include "osdefs.h" // SEP
26+
# define HAVE_SYMLINK
2427
#endif
2528

2629
#ifdef __VXWORKS__
@@ -430,18 +433,7 @@ extern char *ctermid_r(char *);
430433
# ifdef HAVE_PROCESS_H
431434
# include <process.h>
432435
# endif
433-
# ifndef IO_REPARSE_TAG_SYMLINK
434-
# define IO_REPARSE_TAG_SYMLINK (0xA000000CL)
435-
# endif
436-
# ifndef IO_REPARSE_TAG_MOUNT_POINT
437-
# define IO_REPARSE_TAG_MOUNT_POINT (0xA0000003L)
438-
# endif
439-
# include "osdefs.h" // SEP
440436
# include <malloc.h>
441-
# include <windows.h>
442-
# include <shellapi.h> // ShellExecute()
443-
# include <lmcons.h> // UNLEN
444-
# define HAVE_SYMLINK
445437
#endif /* _MSC_VER */
446438

447439
#ifndef MAXPATHLEN

0 commit comments

Comments
 (0)