summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-06-19 22:05:14 +0000
committerjoerg <joerg@pkgsrc.org>2006-06-19 22:05:14 +0000
commiteb175cf6cc9f9e416cb6761902f5d3e01ac50d50 (patch)
tree21f704ccd29dbdf71aedcb5f3984473d65da77e1 /emulators
parent795c6004c1fa996d9c91adaaef42ef52b4a629da (diff)
downloadpkgsrc-eb175cf6cc9f9e416cb6761902f5d3e01ac50d50.tar.gz
Deal with const-ness of dlerror()'s return value like gpsim-devel.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/gpsim/distinfo3
-rw-r--r--emulators/gpsim/patches/patch-ab35
2 files changed, 37 insertions, 1 deletions
diff --git a/emulators/gpsim/distinfo b/emulators/gpsim/distinfo
index ecd4e8ffa46..3c3854cbf57 100644
--- a/emulators/gpsim/distinfo
+++ b/emulators/gpsim/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.7 2006/06/04 06:14:11 dogcow Exp $
+$NetBSD: distinfo,v 1.8 2006/06/19 22:05:14 joerg Exp $
SHA1 (gpsim-0.21.11.tar.gz) = 05337560a6b48a9afb7a3f4be1ba606709f6b30a
RMD160 (gpsim-0.21.11.tar.gz) = 36001180948fc2394043d8283dc1dd028ee4f922
Size (gpsim-0.21.11.tar.gz) = 1218332 bytes
SHA1 (patch-aa) = 0d102952cb8dbe7faaf50416a2d9bec24683c300
+SHA1 (patch-ab) = 199403ee700b145dcb44f42c258903903af20785
diff --git a/emulators/gpsim/patches/patch-ab b/emulators/gpsim/patches/patch-ab
new file mode 100644
index 00000000000..2f8895abce9
--- /dev/null
+++ b/emulators/gpsim/patches/patch-ab
@@ -0,0 +1,35 @@
+$NetBSD: patch-ab,v 1.5 2006/06/19 22:05:14 joerg Exp $
+
+--- src/os_dependent.cc.orig 2005-08-25 21:57:41.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
+ }