# HG changeset patch # User Andrew Innes # Date 966987540 0 # Node ID 42753ce203f87ca3bef3d9b350d2e07fbc904965 # Parent cd392fdf0e9f49e9656eed3ec12ba838ee1cca1e (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. diff -r cd392fdf0e9f -r 42753ce203f8 src/w32proc.c --- a/src/w32proc.c Tue Aug 22 23:37:05 2000 +0000 +++ b/src/w32proc.c Tue Aug 22 23:39:00 2000 +0000 @@ -38,6 +38,10 @@ #undef kill #include +#ifdef __GNUC__ +/* This definition is missing from mingw32 headers. */ +extern BOOL WINAPI IsValidLocale(LCID, DWORD); +#endif #include "lisp.h" #include "w32.h" @@ -304,7 +308,9 @@ { STARTUPINFO start; SECURITY_ATTRIBUTES sec_attrs; +#if 0 SECURITY_DESCRIPTOR sec_desc; +#endif DWORD flags; char dir[ MAXPATHLEN ]; @@ -325,13 +331,15 @@ start.hStdError = GetStdHandle (STD_ERROR_HANDLE); #endif /* HAVE_NTGUI */ +#if 0 /* Explicitly specify no security */ if (!InitializeSecurityDescriptor (&sec_desc, SECURITY_DESCRIPTOR_REVISION)) goto EH_Fail; if (!SetSecurityDescriptorDacl (&sec_desc, TRUE, NULL, FALSE)) goto EH_Fail; +#endif sec_attrs.nLength = sizeof (sec_attrs); - sec_attrs.lpSecurityDescriptor = &sec_desc; + sec_attrs.lpSecurityDescriptor = NULL /* &sec_desc */; sec_attrs.bInheritHandle = FALSE; strcpy (dir, process_dir); @@ -650,9 +658,9 @@ } int -compare_env (const char **strp1, const char **strp2) +compare_env (const void *strp1, const void *strp2) { - const char *str1 = *strp1, *str2 = *strp2; + const char *str1 = *(const char **)strp1, *str2 = *(const char **)strp2; while (*str1 && *str2 && *str1 != '=' && *str2 != '=') { @@ -1302,8 +1310,9 @@ /* Substitute for certain kill () operations */ static BOOL CALLBACK -find_child_console (HWND hwnd, child_process * cp) +find_child_console (HWND hwnd, LPARAM arg) { + child_process * cp = (child_process *) arg; DWORD thread_id; DWORD process_id;