Skip to content

Commit ec2b76a

Browse files
GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on compiler (#95897)
Co-authored-by: Steve Dower <[email protected]>
1 parent a86d854 commit ec2b76a

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
@@ -16,6 +16,9 @@
1616
#ifdef MS_WINDOWS
1717
# include <windows.h>
1818
# include <pathcch.h>
19+
# include <lmcons.h> // UNLEN
20+
# include "osdefs.h" // SEP
21+
# define HAVE_SYMLINK
1922
#endif
2023

2124
#ifdef __VXWORKS__
@@ -426,18 +429,7 @@ extern char *ctermid_r(char *);
426429
# ifdef HAVE_PROCESS_H
427430
# include <process.h>
428431
# endif
429-
# ifndef IO_REPARSE_TAG_SYMLINK
430-
# define IO_REPARSE_TAG_SYMLINK (0xA000000CL)
431-
# endif
432-
# ifndef IO_REPARSE_TAG_MOUNT_POINT
433-
# define IO_REPARSE_TAG_MOUNT_POINT (0xA0000003L)
434-
# endif
435-
# include "osdefs.h" // SEP
436432
# include <malloc.h>
437-
# include <windows.h>
438-
# include <shellapi.h> // ShellExecute()
439-
# include <lmcons.h> // UNLEN
440-
# define HAVE_SYMLINK
441433
#endif /* _MSC_VER */
442434

443435
#ifndef MAXPATHLEN

0 commit comments

Comments
 (0)