[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r101465: Fix bug #6989.
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r101465: Fix bug #6989. |
Date: |
Fri, 17 Sep 2010 23:34:45 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 101465
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Fri 2010-09-17 23:34:45 +0200
message:
Fix bug #6989.
w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
of w32api >= 3.15.
modified:
src/ChangeLog
src/w32.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-09-17 15:47:49 +0000
+++ b/src/ChangeLog 2010-09-17 21:34:45 +0000
@@ -1,3 +1,8 @@
+2010-09-17 Eli Zaretskii <address@hidden>
+
+ * w32.c (_PROCESS_MEMORY_COUNTERS_EX): Don't define with versions
+ of w32api >= 3.15. (Bug#6989)
+
2010-09-17 Lars Magne Ingebrigtsen <address@hidden>
* process.c (wait_reading_process_output): Don't message about
=== modified file 'src/w32.c'
--- a/src/w32.c 2010-08-06 19:52:47 +0000
+++ b/src/w32.c 2010-09-17 21:34:45 +0000
@@ -94,8 +94,11 @@
#include <tlhelp32.h>
#include <psapi.h>
+#include <w32api.h>
+#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 suplied 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 <sys/socket.h>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r101465: Fix bug #6989.,
Eli Zaretskii <=