unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* MinGW port
@ 2006-08-22 16:42 Nils Durner
  2006-09-04 22:20 ` Neil Jerram
  0 siblings, 1 reply; 8+ messages in thread
From: Nils Durner @ 2006-08-22 16:42 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 82 bytes --]

Hi,

the attached patch fixes compiler errors on Win32/MinGW.

Best,

Nils Durner

[-- Attachment #2: guile-mingw.diff --]
[-- Type: text/plain, Size: 1117 bytes --]

diff -Naur guile-core/libguile/posix.c guile-core.nd/libguile/posix.c
--- guile-core/libguile/posix.c	Sun Jun 18 00:05:46 2006
+++ guile-core.nd/libguile/posix.c	Tue Aug 22 13:42:17 2006
@@ -942,7 +942,11 @@
   scm_dynwind_unwind_handler (free_string_pointers, exec_argv, 
 			    SCM_F_WIND_EXPLICITLY);
 
-  execv (exec_file, exec_argv);
+  execv (exec_file,
+#ifdef __MINGW32__
+	(const char * const *)
+#endif
+	exec_argv);
   SCM_SYSERROR;
 
   /* not reached.  */
@@ -973,7 +977,11 @@
   scm_dynwind_unwind_handler (free_string_pointers, exec_argv, 
 			    SCM_F_WIND_EXPLICITLY);
 
-  execvp (exec_file, exec_argv);
+  execvp (exec_file,
+#ifdef __MINGW32__
+	(const char * const *)
+#endif
+	exec_argv);
   SCM_SYSERROR;
 
   /* not reached.  */
@@ -1012,7 +1020,15 @@
   scm_dynwind_unwind_handler (free_string_pointers, exec_env,
 			    SCM_F_WIND_EXPLICITLY);
 
-  execve (exec_file, exec_argv, exec_env);
+  execve (exec_file,
+#ifdef __MINGW32__
+	(const char * const *)
+#endif
+	exec_argv,
+#ifdef __MINGW32__
+	(const char * const *)
+#endif
+	exec_env);
   SCM_SYSERROR;
 
   /* not reached.  */



[-- Attachment #3: Type: text/plain, Size: 137 bytes --]

_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-09-25 17:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-22 16:42 MinGW port Nils Durner
2006-09-04 22:20 ` Neil Jerram
2006-09-04 23:11   ` Kevin Ryde
2006-09-06  1:23     ` Rob Browning
2006-09-09 18:14   ` Nils Durner
2006-09-12  0:56     ` Ken Raeburn
2006-09-14  0:21       ` Kevin Ryde
2006-09-25 17:54       ` Nils Durner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).