summaryrefslogtreecommitdiffstats
path: root/emulators/snes9x/files/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/snes9x/files/patch-ad')
-rw-r--r--emulators/snes9x/files/patch-ad21
1 files changed, 21 insertions, 0 deletions
diff --git a/emulators/snes9x/files/patch-ad b/emulators/snes9x/files/patch-ad
new file mode 100644
index 0000000..3c75d94
--- /dev/null
+++ b/emulators/snes9x/files/patch-ad
@@ -0,0 +1,21 @@
+diff -ru ../../work/release/memmap.cpp ./memmap.cpp
+--- ../../work/release/memmap.cpp Thu Sep 23 19:56:48 1999
++++ ./memmap.cpp Wed Dec 29 01:54:04 1999
+@@ -39,7 +39,7 @@
+ #include <string.h>
+ #include <ctype.h>
+
+-#ifdef __linux
++#if defined(__linux) || defined(__FreeBSD__)
+ #include <unistd.h>
+ #endif
+
+@@ -737,7 +737,7 @@
+ {
+ fwrite ((char *) ::SRAM, size, 1, file);
+ fclose (file);
+-#if defined(__linux)
++#if defined(__linux) || defined(__FreeBSD__)
+ chown (filename, getuid (), getgid ());
+ #endif
+ return (TRUE);
OpenPOWER on IntegriCloud