1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-04 22:33:27 +00:00
freebsd-ports/emulators/snes9x/files/patch-ad

22 lines
542 B
Plaintext
Raw Normal View History

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);