freebsd-ports/emulators/snes9x/files/patch-ad
Jose Alonso Cardenas Marquez 1f1bf1968c - Update to 1.51
- Clean patch files
- Add NETPLAY Option
2007-10-04 05:43:04 +00:00

29 lines
691 B
Text

--- memmap.cpp 2007-10-03 11:11:07.000000000 -0500
+++ memmap.cpp 2007-10-03 11:11:34.000000000 -0500
@@ -169,7 +169,7 @@
#include <ctype.h>
#include <assert.h>
-#ifdef __linux
+#if defined(__linux) || defined(__FreeBSD__)
#include <unistd.h>
#endif
@@ -1473,7 +1473,7 @@
{
fwrite((char *) Multi.sramB, size, 1, file);
fclose(file);
-#ifdef __linux
+#if defined(__linux) || defined(__FreeBSD__)
chown(name, getuid(), getgid());
#endif
}
@@ -1502,7 +1502,7 @@
{
fwrite((char *) SRAM, size, 1, file);
fclose(file);
-#ifdef __linux
+#if defined(__linux) || defined(__FreeBSD__)
chown(sramName, getuid(), getgid());
#endif
if (Settings.SPC7110RTC)