pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/emulators/gpsim-devel Honor constness of dlerror()'s r...
details: https://anonhg.NetBSD.org/pkgsrc/rev/317f8c7234c5
branches: trunk
changeset: 511986:317f8c7234c5
user: joerg <joerg%pkgsrc.org@localhost>
date: Fri Apr 28 15:33:28 2006 +0000
description:
Honor constness of dlerror()'s return value on DragonFly.
diffstat:
emulators/gpsim-devel/distinfo | 3 +-
emulators/gpsim-devel/patches/patch-ab | 35 ++++++++++++++++++++++++++++++++++
2 files changed, 37 insertions(+), 1 deletions(-)
diffs (51 lines):
diff -r 33c94310a4d4 -r 317f8c7234c5 emulators/gpsim-devel/distinfo
--- a/emulators/gpsim-devel/distinfo Fri Apr 28 15:10:18 2006 +0000
+++ b/emulators/gpsim-devel/distinfo Fri Apr 28 15:33:28 2006 +0000
@@ -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 -r 33c94310a4d4 -r 317f8c7234c5 emulators/gpsim-devel/patches/patch-ab
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/emulators/gpsim-devel/patches/patch-ab Fri Apr 28 15:33:28 2006 +0000
@@ -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
+ }
Home |
Main Index |
Thread Index |
Old Index