diff options
| author | Andrew Innes | 2000-08-22 23:39:00 +0000 |
|---|---|---|
| committer | Andrew Innes | 2000-08-22 23:39:00 +0000 |
| commit | 42c95ffbe9086d04b2bd49d59e71fe262e5132c4 (patch) | |
| tree | c2651c56468213b2355c7df1454b2cb2fe2bf694 /src | |
| parent | 15d36dee8f0b3c402466adaa3ef231b3b02086b3 (diff) | |
| download | emacs-42c95ffbe9086d04b2bd49d59e71fe262e5132c4.tar.gz emacs-42c95ffbe9086d04b2bd49d59e71fe262e5132c4.zip | |
(IsValidLocale): Extern missing from mingw32 headers.
(compare_env):
(find_child_console): Fix compile warning.
(create_child): Remove reference to security
descriptor, which isn't needed and doesn't compile with mingw32.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32proc.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/w32proc.c b/src/w32proc.c index 21bdebbbecc..1f7df5e8578 100644 --- a/src/w32proc.c +++ b/src/w32proc.c | |||
| @@ -38,6 +38,10 @@ Boston, MA 02111-1307, USA. | |||
| 38 | #undef kill | 38 | #undef kill |
| 39 | 39 | ||
| 40 | #include <windows.h> | 40 | #include <windows.h> |
| 41 | #ifdef __GNUC__ | ||
| 42 | /* This definition is missing from mingw32 headers. */ | ||
| 43 | extern BOOL WINAPI IsValidLocale(LCID, DWORD); | ||
| 44 | #endif | ||
| 41 | 45 | ||
| 42 | #include "lisp.h" | 46 | #include "lisp.h" |
| 43 | #include "w32.h" | 47 | #include "w32.h" |
| @@ -304,7 +308,9 @@ create_child (char *exe, char *cmdline, char *env, | |||
| 304 | { | 308 | { |
| 305 | STARTUPINFO start; | 309 | STARTUPINFO start; |
| 306 | SECURITY_ATTRIBUTES sec_attrs; | 310 | SECURITY_ATTRIBUTES sec_attrs; |
| 311 | #if 0 | ||
| 307 | SECURITY_DESCRIPTOR sec_desc; | 312 | SECURITY_DESCRIPTOR sec_desc; |
| 313 | #endif | ||
| 308 | DWORD flags; | 314 | DWORD flags; |
| 309 | char dir[ MAXPATHLEN ]; | 315 | char dir[ MAXPATHLEN ]; |
| 310 | 316 | ||
| @@ -325,13 +331,15 @@ create_child (char *exe, char *cmdline, char *env, | |||
| 325 | start.hStdError = GetStdHandle (STD_ERROR_HANDLE); | 331 | start.hStdError = GetStdHandle (STD_ERROR_HANDLE); |
| 326 | #endif /* HAVE_NTGUI */ | 332 | #endif /* HAVE_NTGUI */ |
| 327 | 333 | ||
| 334 | #if 0 | ||
| 328 | /* Explicitly specify no security */ | 335 | /* Explicitly specify no security */ |
| 329 | if (!InitializeSecurityDescriptor (&sec_desc, SECURITY_DESCRIPTOR_REVISION)) | 336 | if (!InitializeSecurityDescriptor (&sec_desc, SECURITY_DESCRIPTOR_REVISION)) |
| 330 | goto EH_Fail; | 337 | goto EH_Fail; |
| 331 | if (!SetSecurityDescriptorDacl (&sec_desc, TRUE, NULL, FALSE)) | 338 | if (!SetSecurityDescriptorDacl (&sec_desc, TRUE, NULL, FALSE)) |
| 332 | goto EH_Fail; | 339 | goto EH_Fail; |
| 340 | #endif | ||
| 333 | sec_attrs.nLength = sizeof (sec_attrs); | 341 | sec_attrs.nLength = sizeof (sec_attrs); |
| 334 | sec_attrs.lpSecurityDescriptor = &sec_desc; | 342 | sec_attrs.lpSecurityDescriptor = NULL /* &sec_desc */; |
| 335 | sec_attrs.bInheritHandle = FALSE; | 343 | sec_attrs.bInheritHandle = FALSE; |
| 336 | 344 | ||
| 337 | strcpy (dir, process_dir); | 345 | strcpy (dir, process_dir); |
| @@ -650,9 +658,9 @@ unwind: | |||
| 650 | } | 658 | } |
| 651 | 659 | ||
| 652 | int | 660 | int |
| 653 | compare_env (const char **strp1, const char **strp2) | 661 | compare_env (const void *strp1, const void *strp2) |
| 654 | { | 662 | { |
| 655 | const char *str1 = *strp1, *str2 = *strp2; | 663 | const char *str1 = *(const char **)strp1, *str2 = *(const char **)strp2; |
| 656 | 664 | ||
| 657 | while (*str1 && *str2 && *str1 != '=' && *str2 != '=') | 665 | while (*str1 && *str2 && *str1 != '=' && *str2 != '=') |
| 658 | { | 666 | { |
| @@ -1302,8 +1310,9 @@ count_children: | |||
| 1302 | /* Substitute for certain kill () operations */ | 1310 | /* Substitute for certain kill () operations */ |
| 1303 | 1311 | ||
| 1304 | static BOOL CALLBACK | 1312 | static BOOL CALLBACK |
| 1305 | find_child_console (HWND hwnd, child_process * cp) | 1313 | find_child_console (HWND hwnd, LPARAM arg) |
| 1306 | { | 1314 | { |
| 1315 | child_process * cp = (child_process *) arg; | ||
| 1307 | DWORD thread_id; | 1316 | DWORD thread_id; |
| 1308 | DWORD process_id; | 1317 | DWORD process_id; |
| 1309 | 1318 | ||