aboutsummaryrefslogtreecommitdiff
path: root/devel/gpsim/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/gpsim/files')
-rw-r--r--devel/gpsim/files/4patch-cli_input.cc32
-rw-r--r--devel/gpsim/files/patch-src_os__dependent.cc11
2 files changed, 43 insertions, 0 deletions
diff --git a/devel/gpsim/files/4patch-cli_input.cc b/devel/gpsim/files/4patch-cli_input.cc
new file mode 100644
index 000000000000..856e5c367214
--- /dev/null
+++ b/devel/gpsim/files/4patch-cli_input.cc
@@ -0,0 +1,32 @@
+--- cli/input.cc.orig Wed Aug 31 05:57:33 2005
++++ cli/input.cc Sun Mar 19 20:35:44 2006
+@@ -49,7 +49,6 @@
+ // temp fix to over come 23jan05 changes to configure script that prevent
+ // readline from being found on older systems.
+ #define HAVE_READLINE
+-#define HAVE_NSCLEAN_READLINE
+
+ #endif
+
+@@ -899,7 +898,7 @@
+ win32_fd_to_raw(fileno(stdin));
+ #endif
+
+- rl_getc_function = gpsim_rl_getc;
++ rl_getc_function = (Function *) gpsim_rl_getc;
+ channel = g_io_channel_unix_new (fileno(stdin));
+
+ #ifdef _WIN32
+@@ -915,10 +914,10 @@
+ #else
+ g_io_add_watch (channel, G_IO_IN, keypressed, NULL);
+ #endif
+- rl_callback_handler_install (prompt, have_line);
++ rl_callback_handler_install ((char *) prompt, (VFunction *) have_line);
+
+ /* Tell the completer that we want a crack first. */
+- rl_attempted_completion_function = gpsim_completion;
++ rl_attempted_completion_function = (CPPFunction *) gpsim_completion;
+
+ #endif //HAVE_READLINE
+ }
diff --git a/devel/gpsim/files/patch-src_os__dependent.cc b/devel/gpsim/files/patch-src_os__dependent.cc
new file mode 100644
index 000000000000..30547a4fd047
--- /dev/null
+++ b/devel/gpsim/files/patch-src_os__dependent.cc
@@ -0,0 +1,11 @@
+--- src/os_dependent.cc.orig Thu Aug 25 23:57:41 2005
++++ src/os_dependent.cc Sun Mar 19 20:45:54 2006
+@@ -349,7 +349,7 @@
+
+ char * get_error_message() {
+ #ifndef _WIN32
+- return dlerror();
++ return (char *) dlerror();
+ #else
+ return g_win32_error_message(GetLastError());
+ #endif