diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-07-06 14:52:33 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-07-06 14:52:33 +0000 |
commit | 9cfc9511cd15f126fe7da4801e65e5afbe7b5486 (patch) | |
tree | 6a4ccb11bb7342b5367af615dedac1205eaf0df8 /winsup/utils/ps.cc | |
parent | 3eedbf86113bf48d7e11349439b91fb034f5d1cd (diff) | |
download | cygnal-9cfc9511cd15f126fe7da4801e65e5afbe7b5486.tar.gz cygnal-9cfc9511cd15f126fe7da4801e65e5afbe7b5486.tar.bz2 cygnal-9cfc9511cd15f126fe7da4801e65e5afbe7b5486.zip |
* 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.cc | 6 |
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'; |