aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/w32.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 0aa7e869c39..cc7e302d733 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12010-11-22 Eli Zaretskii <eliz@gnu.org>
2
3 * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
4 of w32api >= 3.15. (Bug#6989) (Bug#7452)
5
12010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 62010-11-22 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 7
3 * alloc.c (mark_terminals): Ensure that the image cache is marked 8 * alloc.c (mark_terminals): Ensure that the image cache is marked
diff --git a/src/w32.c b/src/w32.c
index d96abd346f5..1b01a631850 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -94,8 +94,11 @@ typedef struct _MEMORY_STATUS_EX {
94 94
95#include <tlhelp32.h> 95#include <tlhelp32.h>
96#include <psapi.h> 96#include <psapi.h>
97#include <w32api.h>
98#if !defined(__MINGW32__) || __W32API_MAJOR_VERSION < 3 || (__W32API_MAJOR_VERSION == 3 && __W32API_MINOR_VERSION < 15)
97/* This either is not in psapi.h or guarded by higher value of 99/* This either is not in psapi.h or guarded by higher value of
98 _WIN32_WINNT than what we use. */ 100 _WIN32_WINNT than what we use. w32api supplied with MinGW 3.15
101 defines it in psapi.h */
99typedef struct _PROCESS_MEMORY_COUNTERS_EX { 102typedef struct _PROCESS_MEMORY_COUNTERS_EX {
100 DWORD cb; 103 DWORD cb;
101 DWORD PageFaultCount; 104 DWORD PageFaultCount;
@@ -109,6 +112,7 @@ typedef struct _PROCESS_MEMORY_COUNTERS_EX {
109 DWORD PeakPagefileUsage; 112 DWORD PeakPagefileUsage;
110 DWORD PrivateUsage; 113 DWORD PrivateUsage;
111} PROCESS_MEMORY_COUNTERS_EX,*PPROCESS_MEMORY_COUNTERS_EX; 114} PROCESS_MEMORY_COUNTERS_EX,*PPROCESS_MEMORY_COUNTERS_EX;
115#endif
112 116
113#ifdef HAVE_SOCKETS /* TCP connection support, if kernel can do it */ 117#ifdef HAVE_SOCKETS /* TCP connection support, if kernel can do it */
114#include <sys/socket.h> 118#include <sys/socket.h>