From 3d392959e58214cf840dc0426eadd426973a86bc Mon Sep 17 00:00:00 2001 From: will Date: Sun, 20 May 2001 02:48:11 +0000 Subject: Add zsnes 1.20, an x86 only Super Nintendo Entertainment System (SNES) Emulator. PR: 27077 Submitted by: Stijn Hoop --- emulators/zsnes/files/patch-src::linux::protect.c | 12 ++++++++++++ emulators/zsnes/files/patch-src::linux::zfilew.c | 14 ++++++++++++++ emulators/zsnes/files/patch-src::linux::ztcp.c | 14 ++++++++++++++ emulators/zsnes/files/patch-src::makefile.linux | 22 ++++++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 emulators/zsnes/files/patch-src::linux::protect.c create mode 100644 emulators/zsnes/files/patch-src::linux::zfilew.c create mode 100644 emulators/zsnes/files/patch-src::linux::ztcp.c create mode 100644 emulators/zsnes/files/patch-src::makefile.linux (limited to 'emulators/zsnes/files') diff --git a/emulators/zsnes/files/patch-src::linux::protect.c b/emulators/zsnes/files/patch-src::linux::protect.c new file mode 100644 index 000000000000..e283e7d3a043 --- /dev/null +++ b/emulators/zsnes/files/patch-src::linux::protect.c @@ -0,0 +1,12 @@ +--- src/linux/protect.c.orig Tue May 1 21:33:14 2001 ++++ src/linux/protect.c Thu May 3 20:17:23 2001 +@@ -16,6 +16,9 @@ + //Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + + #include ++#ifdef __FreeBSD__ ++#include ++#endif + #include + #include + #include diff --git a/emulators/zsnes/files/patch-src::linux::zfilew.c b/emulators/zsnes/files/patch-src::linux::zfilew.c new file mode 100644 index 000000000000..5483ff407fb4 --- /dev/null +++ b/emulators/zsnes/files/patch-src::linux::zfilew.c @@ -0,0 +1,14 @@ +--- src/linux/zfilew.c.orig Tue May 1 21:33:14 2001 ++++ src/linux/zfilew.c Thu May 3 22:47:47 2001 +@@ -365,6 +365,11 @@ + + *(char *)(DTALocPos + 0x15) = 0; + ++#ifdef __FreeBSD__ ++ if (globbuf.gl_matchc == 0) ++ return -1; ++#endif ++ + stat ( globbuf.gl_pathv[globcur], &filetype ); + + if(ZFileFindATTRIB&0x10 && !S_ISDIR ( filetype.st_mode )) return(ZFileFindNext()); diff --git a/emulators/zsnes/files/patch-src::linux::ztcp.c b/emulators/zsnes/files/patch-src::linux::ztcp.c new file mode 100644 index 000000000000..df10aac41cf4 --- /dev/null +++ b/emulators/zsnes/files/patch-src::linux::ztcp.c @@ -0,0 +1,14 @@ +--- src/linux/ztcp.c.orig Tue May 1 21:33:14 2001 ++++ src/linux/ztcp.c Thu May 3 20:17:23 2001 +@@ -92,7 +92,11 @@ + #include + #include + #include ++#ifndef __FreeBSD__ + #include // for FIONREAD ++#else ++#include // for FIONREAD ++#endif + #else + #include + #include diff --git a/emulators/zsnes/files/patch-src::makefile.linux b/emulators/zsnes/files/patch-src::makefile.linux new file mode 100644 index 000000000000..d2b9468b6aa7 --- /dev/null +++ b/emulators/zsnes/files/patch-src::makefile.linux @@ -0,0 +1,22 @@ +--- src/makefile.linux.orig Tue May 1 21:33:15 2001 ++++ src/makefile.linux Fri May 4 13:21:00 2001 +@@ -23,7 +23,7 @@ + WINDIR=linux + OBJDIR=obj + ZIPDIR=zip +-MANDIR=/usr/man/man1 ++MANDIR=$(PREFIX)/man/man1 + + CHIPSOBJ=${CHIPDIR}/sfxproc.o ${CHIPDIR}/fxemu2.o ${CHIPDIR}/dsp1proc.o\ + ${CHIPDIR}/fxemu2b.o ${CHIPDIR}/fxemu2c.o ${CHIPDIR}/fxtable.o\ +@@ -58,8 +58,8 @@ + MAINOBJ=cfgload.o endmem.o fixsin.o init.o ui.o vcache.o water.o + + OBJS=${CHIPSOBJ} ${CPUOBJ} ${WINOBJ} ${WINDOSOBJ} ${GUIOBJ} ${VIDEOBJ} ${ZIPOBJ} ${MAINOBJ} +-SDLLIBS := $(shell sdl-config --libs) +-SDLCFLAGS := $(shell sdl-config --cflags) ++SDLLIBS := $(shell $(SDL_CONFIG) --libs) ++SDLCFLAGS := $(shell $(SDL_CONFIG) --cflags) + LIBS=${SDLLIBS} -lz + CFLAGS=-g -Wall -D__LINUX__ ${SDLCFLAGS} + ASM=nasm -- cgit