summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
Diffstat (limited to 'emulators')
-rw-r--r--emulators/gpsim-devel/distinfo3
-rw-r--r--emulators/gpsim-devel/patches/patch-ab35
2 files changed, 37 insertions, 1 deletions
diff --git a/emulators/gpsim-devel/distinfo b/emulators/gpsim-devel/distinfo
index 84fd8d3840e..10528561201 100644
--- a/emulators/gpsim-devel/distinfo
+++ b/emulators/gpsim-devel/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2005/09/07 20:17:46 bouyer Exp $
+$NetBSD: distinfo,v 1.5 2006/04/28 15:33:28 joerg Exp $
SHA1 (gpsim-20050905.tar.gz) = 46e7d0d69695961aca4324d8d3267181bd641081
RMD160 (gpsim-20050905.tar.gz) = 1b717f0e51440c4e2db72a4bdfb90d2e8d5e4a3d
Size (gpsim-20050905.tar.gz) = 2027957 bytes
SHA1 (patch-aa) = f7d1c04b216ecabaf3071f92c97c7436a54f1e87
+SHA1 (patch-ab) = cd3ef9b6bef759e95ee18b1995d514546c2475ae
diff --git a/emulators/gpsim-devel/patches/patch-ab b/emulators/gpsim-devel/patches/patch-ab
new file mode 100644
index 00000000000..8655378d8fc
--- /dev/null
+++ b/emulators/gpsim-devel/patches/patch-ab
@@ -0,0 +1,35 @@
+$NetBSD: patch-ab,v 1.3 2006/04/28 15:33:28 joerg Exp $
+
+--- src/os_dependent.cc.orig 2006-04-28 14:38:52.000000000 +0000
++++ src/os_dependent.cc
+@@ -37,6 +37,10 @@ Boston, MA 02111-1307, USA. */
+ #include "exports.h"
+ #include "modules.h"
+
++#if defined(__DragonFly__)
++#include <glib/gstrfuncs.h>
++#include <glib/gmem.h>
++#endif
+ #ifndef _WIN32
+ #include <dlfcn.h>
+ #define STRICMP strcasecmp
+@@ -348,7 +352,9 @@ unsigned long get_error() {
+ }
+
+ char * get_error_message() {
+-#ifndef _WIN32
++#if defined(__DragonFly__)
++ return g_strdup(dlerror());
++#elif !defined(_WIN32)
+ return dlerror();
+ #else
+ return g_win32_error_message(GetLastError());
+@@ -357,7 +363,7 @@ char * get_error_message() {
+
+ void free_error_message(char * pszError)
+ {
+-#ifdef _WIN32
++#if defined(_WIN32) || defined(__DragonFly__)
+ g_free(pszError);
+ #endif
+ }