diff options
Diffstat (limited to 'emulators/gpsim/patches/patch-ab')
-rw-r--r-- | emulators/gpsim/patches/patch-ab | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/emulators/gpsim/patches/patch-ab b/emulators/gpsim/patches/patch-ab deleted file mode 100644 index 96d189af9b8..00000000000 --- a/emulators/gpsim/patches/patch-ab +++ /dev/null @@ -1,55 +0,0 @@ -$NetBSD: patch-ab,v 1.7 2012/05/10 06:52:52 dholland Exp $ - -- Use standard includes. -- Deal with const-ness of dlerror()'s return value like gpsim-devel. -- Fix build with latest glib2. - ---- src/os_dependent.cc.orig 2005-08-25 21:57:41.000000000 +0000 -+++ src/os_dependent.cc -@@ -27,6 +27,7 @@ Boston, MA 02111-1307, USA. */ - #include <stdlib.h> - #include <unistd.h> - #include <string> -+#include <string.h> - - #include <iostream> - #include <iomanip> -@@ -37,14 +38,16 @@ Boston, MA 02111-1307, USA. */ - #include "exports.h" - #include "modules.h" - -+#if defined(__DragonFly__) -+#include <glib.h> -+#endif - #ifndef _WIN32 - #include <dlfcn.h> - #define STRICMP strcasecmp - #else - #define G_PLATFORM_WIN32 - #define G_OS_WIN32 --#include <glib/gmem.h> --#include <glib/gwin32.h> -+#include <glib.h> - #include <direct.h> - #include <windows.h> - -@@ -348,7 +351,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 +362,7 @@ char * get_error_message() { - - void free_error_message(char * pszError) - { --#ifdef _WIN32 -+#if defined(_WIN32) || defined(__DragonFly__) - g_free(pszError); - #endif - } |