File tree Expand file tree Collapse file tree 4 files changed +19
-0
lines changed
Expand file tree Collapse file tree 4 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 2020#undef u_long
2121#define u_long __ms_u_long
2222#include < w32api/ws2tcpip.h>
23+ /* 2025-06-09: win32api headers v13 now define a cmsghdr type which clashes with
24+ our socket.h. Arrange not to see it here. */
25+ #undef cmsghdr
26+ #define cmsghdr __ms_cmsghdr
2327#include < w32api/mswsock.h>
28+ #undef cmsghdr
2429#include < w32api/mstcpip.h>
2530#include < netinet/tcp.h>
2631#include < netinet/udp.h>
Original file line number Diff line number Diff line change 2121#define u_long __ms_u_long
2222#include " ntsecapi.h"
2323#include < w32api/ws2tcpip.h>
24+ /* 2025-06-09: win32api headers v13 now define a cmsghdr type which clashes with
25+ our socket.h. Arrange not to see it here. */
26+ #undef cmsghdr
27+ #define cmsghdr __ms_cmsghdr
2428#include < w32api/mswsock.h>
29+ #undef cmsghdr
2530#include < unistd.h>
2631#include < asm/byteorder.h>
2732#include < sys/socket.h>
Original file line number Diff line number Diff line change @@ -489,6 +489,8 @@ typedef struct _FILE_DISPOSITION_INFORMATION_EX // 64
489489 ULONG Flags ;
490490} FILE_DISPOSITION_INFORMATION_EX , * PFILE_DISPOSITION_INFORMATION_EX ;
491491
492+ #if __MINGW64_VERSION_MAJOR < 13
493+
492494typedef struct _FILE_STAT_INFORMATION // 68
493495{
494496 LARGE_INTEGER FileId ;
@@ -509,6 +511,8 @@ typedef struct _FILE_CASE_SENSITIVE_INFORMATION // 71
509511 ULONG Flags ;
510512} FILE_CASE_SENSITIVE_INFORMATION , * PFILE_CASE_SENSITIVE_INFORMATION ;
511513
514+ #endif
515+
512516enum {
513517 FILE_LINK_REPLACE_IF_EXISTS = 0x01 ,
514518 FILE_LINK_POSIX_SEMANTICS = 0x02 ,
Original file line number Diff line number Diff line change @@ -18,7 +18,12 @@ details. */
1818#undef u_long
1919#define u_long __ms_u_long
2020#include < w32api/ws2tcpip.h>
21+ /* 2025-06-09: win32api headers v13 now define a cmsghdr type which clashes with
22+ our socket.h. Arrange not to see it here. */
23+ #undef cmsghdr
24+ #define cmsghdr __ms_cmsghdr
2125#include < w32api/mswsock.h>
26+ #undef cmsghdr
2227#include < w32api/iphlpapi.h>
2328#define gethostname cygwin_gethostname
2429#include < unistd.h>
You can’t perform that action at this time.
0 commit comments