# HG changeset patch # User Eli Zaretskii # Date 1290449369 -7200 # Node ID b9089a7c21abdbf8eb494e6fb770e9e523799234 # Parent 3e35cf2d7f2ec53618325d59a556f0754dcc79cd Back-port revision 101465 from the trunk, to resolve bug #7452. w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions of w32api >= 3.15. diff -r 3e35cf2d7f2e -r b9089a7c21ab src/ChangeLog --- a/src/ChangeLog Mon Nov 22 05:52:49 2010 +0200 +++ b/src/ChangeLog Mon Nov 22 20:09:29 2010 +0200 @@ -1,3 +1,8 @@ +2010-11-22 Eli Zaretskii + + * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions + of w32api >= 3.15. (Bug#6989) (Bug#7452) + 2010-11-22 YAMAMOTO Mitsuharu * alloc.c (mark_terminals): Ensure that the image cache is marked diff -r 3e35cf2d7f2e -r b9089a7c21ab src/w32.c --- a/src/w32.c Mon Nov 22 05:52:49 2010 +0200 +++ b/src/w32.c Mon Nov 22 20:09:29 2010 +0200 @@ -94,8 +94,11 @@ #include #include +#include +#if !defined(__MINGW32__) || __W32API_MAJOR_VERSION < 3 || (__W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION < 15) /* This either is not in psapi.h or guarded by higher value of - _WIN32_WINNT than what we use. */ + _WIN32_WINNT than what we use. w32api supplied with MinGW 3.15 + defines it in psapi.h */ typedef struct _PROCESS_MEMORY_COUNTERS_EX { DWORD cb; DWORD PageFaultCount; @@ -109,6 +112,7 @@ DWORD PeakPagefileUsage; DWORD PrivateUsage; } PROCESS_MEMORY_COUNTERS_EX,*PPROCESS_MEMORY_COUNTERS_EX; +#endif #ifdef HAVE_SOCKETS /* TCP connection support, if kernel can do it */ #include