1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-17 00:00:40 +00:00
freebsd-ports/emulators/snes9x/files/patch-ad
Brian Feldman d09907238d Snes9X needs to _not_ have USE_THREADS auto-defined for FreeBSD in
unix/unix.cpp to build, especially when the Makefile does not have it
defined.  Also, along with this, split the patches out into the
customary one-file-per-patch chunks.

I'm not ${MAINTAINER}, but nacai does not mind my working on the
port :)
1999-12-29 07:12:58 +00:00

22 lines
542 B
Plaintext

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