summaryrefslogtreecommitdiff
path: root/emulators/gpsim/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/gpsim/patches/patch-ab')
-rw-r--r--emulators/gpsim/patches/patch-ab16
1 files changed, 12 insertions, 4 deletions
diff --git a/emulators/gpsim/patches/patch-ab b/emulators/gpsim/patches/patch-ab
index 2f8895abce9..95d3eb178ec 100644
--- a/emulators/gpsim/patches/patch-ab
+++ b/emulators/gpsim/patches/patch-ab
@@ -1,8 +1,16 @@
-$NetBSD: patch-ab,v 1.5 2006/06/19 22:05:14 joerg Exp $
+$NetBSD: patch-ab,v 1.6 2011/12/19 15:52:20 wiz 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. */
+@@ -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,6 +38,10 @@ Boston, MA 02111-1307, USA. */
#include "exports.h"
#include "modules.h"
@@ -13,7 +21,7 @@ $NetBSD: patch-ab,v 1.5 2006/06/19 22:05:14 joerg Exp $
#ifndef _WIN32
#include <dlfcn.h>
#define STRICMP strcasecmp
-@@ -348,7 +352,9 @@ unsigned long get_error() {
+@@ -348,7 +353,9 @@ unsigned long get_error() {
}
char * get_error_message() {
@@ -24,7 +32,7 @@ $NetBSD: patch-ab,v 1.5 2006/06/19 22:05:14 joerg Exp $
return dlerror();
#else
return g_win32_error_message(GetLastError());
-@@ -357,7 +363,7 @@ char * get_error_message() {
+@@ -357,7 +364,7 @@ char * get_error_message() {
void free_error_message(char * pszError)
{