Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2012-07-06 18:52:33 +0400
committerCorinna Vinschen <corinna@vinschen.de>2012-07-06 18:52:33 +0400
commit9cfc9511cd15f126fe7da4801e65e5afbe7b5486 (patch)
tree6a4ccb11bb7342b5367af615dedac1205eaf0df8 /winsup/utils/ps.cc
parent3eedbf86113bf48d7e11349439b91fb034f5d1cd (diff)
* cygpath.cc: Change including headers to allow building against
Mingw64 headers. Include ntdef.h and ntdll.h rather than ddk headers. Define _WIN32_WINNT and WINVER as 0x0602. (RtlEqualUnicodePathPrefix): Drop definition. Pulled in from ntdll.h now. (get_device_name): s/Zw/Nt. * dumper.cc: Include sys/param.h (dumper::dump_memory_region): Use MIN rather than min. * locale.cc: Include stdlib.h. Define _WIN32_WINNT and WINVER as 0x0602. * ps.cc: Include ntdef.h and ntdll.h rather than ddk headers. * regtool.cc (regDeleteKeyEx): Drop WINADVAPI qualifier.
Diffstat (limited to 'winsup/utils/ps.cc')
-rw-r--r--winsup/utils/ps.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/utils/ps.cc b/winsup/utils/ps.cc
index e026518c4..7ed69ea9b 100644
--- a/winsup/utils/ps.cc
+++ b/winsup/utils/ps.cc
@@ -23,8 +23,8 @@ details. */
#include <sys/cygwin.h>
#include <cygwin/version.h>
#include <psapi.h>
-#include <ddk/ntapi.h>
-#include <ddk/winddk.h>
+#include <ntdef.h>
+#include <ntdll.h>
#include "loadlib.h"
/* Maximum possible path length under NT. There's no official define
@@ -347,7 +347,7 @@ main (int argc, char *argv[])
unicode_buf to have enough space for a maximum sized
UNICODE_STRING. */
if (uni->Length == 0) /* System process */
- win32path = L"System";
+ win32path = (wchar_t *) L"System";
else
{
uni->Buffer[uni->Length / sizeof (WCHAR)] = L'\0';