summaryrefslogtreecommitdiff
path: root/emulators/vba/patches
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-06-14 11:45:06 +0000
committernia <nia@pkgsrc.org>2020-06-14 11:45:06 +0000
commit6a2634440228470fb92a633c2414fed0f180d7f0 (patch)
tree92e1e0a969eb5a447541646fe9ae2a0cb6c7b352 /emulators/vba/patches
parentc8368025e96b75d83b286a06d33d8c8b63483107 (diff)
downloadpkgsrc-6a2634440228470fb92a633c2414fed0f180d7f0.tar.gz
emulators: remove vba, replaced by visualboyadvance-m etc
Diffstat (limited to 'emulators/vba/patches')
-rw-r--r--emulators/vba/patches/patch-aa20
-rw-r--r--emulators/vba/patches/patch-ab15
-rw-r--r--emulators/vba/patches/patch-ac271
-rw-r--r--emulators/vba/patches/patch-ad13
-rw-r--r--emulators/vba/patches/patch-ae22
-rw-r--r--emulators/vba/patches/patch-af43
-rw-r--r--emulators/vba/patches/patch-ag72
-rw-r--r--emulators/vba/patches/patch-src_GBA.cpp40
-rw-r--r--emulators/vba/patches/patch-src_expr.cpp17
-rw-r--r--emulators/vba/patches/patch-src_expr.y15
-rw-r--r--emulators/vba/patches/patch-src_memgzio.c15
-rw-r--r--emulators/vba/patches/patch-src_memgzio.h14
12 files changed, 0 insertions, 557 deletions
diff --git a/emulators/vba/patches/patch-aa b/emulators/vba/patches/patch-aa
deleted file mode 100644
index a1df988ea8f..00000000000
--- a/emulators/vba/patches/patch-aa
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2006/04/17 14:50:47 wiz Exp $
-
---- src/unzip.h.orig Sun Oct 20 06:03:12 2002
-+++ src/unzip.h Mon Jun 30 23:45:30 2003
-@@ -68,6 +68,15 @@
- #include "zlib.h"
- #endif
-
-+// nasty stuff taken from win32/include/zlib/zconf.h to make this compile
-+#ifndef OF /* function prototypes */
-+# ifdef STDC
-+# define OF(args) args
-+# else
-+# define OF(args) ()
-+# endif
-+#endif
-+
- #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
- /* like the STRICT of WIN32, we define a pointer that cannot be converted
- from (void*) without cast */
diff --git a/emulators/vba/patches/patch-ab b/emulators/vba/patches/patch-ab
deleted file mode 100644
index 0459bba5bc9..00000000000
--- a/emulators/vba/patches/patch-ab
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2006/04/17 14:50:47 wiz Exp $
-
---- win32/include/zlib/zutil.h.orig 2004-01-18 00:07:32.000000000 +0100
-+++ win32/include/zlib/zutil.h
-@@ -26,6 +26,10 @@
- # include <errno.h>
- #endif
-
-+#ifndef OF
-+#define OF(X) X
-+#endif
-+
- #ifndef local
- # define local static
- #endif
diff --git a/emulators/vba/patches/patch-ac b/emulators/vba/patches/patch-ac
deleted file mode 100644
index b40d1c28bd5..00000000000
--- a/emulators/vba/patches/patch-ac
+++ /dev/null
@@ -1,271 +0,0 @@
-$NetBSD: patch-ac,v 1.1 2006/04/17 14:50:47 wiz Exp $
-
---- src/sdl/SDL.cpp.orig 2004-05-21 22:16:58.000000000 +0200
-+++ src/sdl/SDL.cpp
-@@ -98,6 +98,7 @@ extern void MotionBlurIB32(u8*,u32,int,i
- void Init_Overlay(SDL_Surface *surface, int overlaytype);
- void Quit_Overlay(void);
- void Draw_Overlay(SDL_Surface *surface, int size);
-+SDL_Surface *Set_Video(bool first);
-
- extern void remoteInit();
- extern void remoteCleanUp();
-@@ -248,8 +249,12 @@ bool screenMessage = false;
- char screenMessageBuffer[21];
- u32 screenMessageTime = 0;
-
-+#if 0
- SDL_cond *cond = NULL;
- SDL_mutex *mutex = NULL;
-+#else
-+SDL_sem *rsem, *wsem;
-+#endif
- u8 sdlBuffer[4096];
- int sdlSoundLen = 0;
-
-@@ -886,8 +891,8 @@ FILE *sdlFindFile(const char *name)
- char *home = getenv("HOME");
-
- if(home != NULL) {
-- fprintf(stderr, "Searching home directory: %s\n", home);
-- sprintf(path, "%s%c%s", home, FILE_SEP, name);
-+ fprintf(stderr, "Searching home directory: %s%c.vba\n", home, FILE_SEP);
-+ sprintf(path, "%s%c.vba%c%s", home, FILE_SEP, FILE_SEP, name);
- f = fopen(path, "r");
- if(f != NULL)
- return f;
-@@ -1744,11 +1749,8 @@ void sdlPollEvents()
- case SDLK_f:
- if(!(event.key.keysym.mod & MOD_NOCTRL) &&
- (event.key.keysym.mod & KMOD_CTRL)) {
-- int flags = 0;
- fullscreen = !fullscreen;
-- if(fullscreen)
-- flags |= SDL_FULLSCREEN;
-- SDL_SetVideoMode(destWidth, destHeight, systemColorDepth, flags);
-+ Set_Video(false);
- // if(SDL_WM_ToggleFullScreen(surface))
- // fullscreen = !fullscreen;
- }
-@@ -2320,9 +2322,7 @@ int main(int argc, char **argv)
- destWidth = (sizeOption+1)*srcWidth;
- destHeight = (sizeOption+1)*srcHeight;
-
-- surface = SDL_SetVideoMode(destWidth, destHeight, 16,
-- SDL_ANYFORMAT|SDL_HWSURFACE|SDL_DOUBLEBUF|
-- (fullscreen ? SDL_FULLSCREEN : 0));
-+ surface = Set_Video(true);
-
- if(surface == NULL) {
- systemMessage(0, "Failed to set video mode");
-@@ -2916,6 +2916,7 @@ void soundCallback(void *,u8 *stream,int
- {
- if(!emulating)
- return;
-+#if 0
- SDL_mutexP(mutex);
- // printf("Locked mutex\n");
- if(!speedup && !throttle) {
-@@ -2926,19 +2927,27 @@ void soundCallback(void *,u8 *stream,int
- break;
- }
- }
-+#else
-+ SDL_SemWait(rsem);
-+#endif
- if(emulating) {
- // printf("Copying data\n");
- memcpy(stream, sdlBuffer, len);
- }
- sdlSoundLen = 0;
-+#if 0
- if(mutex)
- SDL_mutexV(mutex);
-+#else
-+ SDL_SemPost(wsem);
-+#endif
- }
-
- void systemWriteDataToSoundBuffer()
- {
- if(SDL_GetAudioStatus() != SDL_AUDIO_PLAYING)
- SDL_PauseAudio(0);
-+#if 0
- bool cont = true;
- while(cont && !speedup && !throttle) {
- SDL_mutexP(mutex);
-@@ -2976,6 +2985,11 @@ soundBufferLen);
- memcpy(&sdlBuffer[sdlSoundLen], soundFinalWave, soundBufferLen);
- sdlSoundLen += soundBufferLen;
- }
-+#else
-+ memcpy(sdlBuffer, soundFinalWave, soundBufferLen);
-+ SDL_SemPost(rsem);
-+ SDL_SemWait(wsem);
-+#endif
- }
-
- bool systemSoundInit()
-@@ -2998,7 +3012,7 @@ bool systemSoundInit()
- }
- audio.format=AUDIO_S16SYS;
- audio.channels = 2;
-- audio.samples = 1024;
-+ audio.samples = soundBufferLen/4;
- audio.callback = soundCallback;
- audio.userdata = NULL;
- if(SDL_OpenAudio(&audio, NULL)) {
-@@ -3006,8 +3020,13 @@ bool systemSoundInit()
- return false;
- }
- soundBufferTotalLen = soundBufferLen*10;
-+#if 0
- cond = SDL_CreateCond();
- mutex = SDL_CreateMutex();
-+#else
-+ rsem = SDL_CreateSemaphore(0);
-+ wsem = SDL_CreateSemaphore(0);
-+#endif
- sdlSoundLen = 0;
- systemSoundOn = true;
- return true;
-@@ -3015,6 +3034,7 @@ bool systemSoundInit()
-
- void systemSoundShutdown()
- {
-+#if 0
- SDL_mutexP(mutex);
- SDL_CondSignal(cond);
- SDL_mutexV(mutex);
-@@ -3022,7 +3042,15 @@ void systemSoundShutdown()
- cond = NULL;
- SDL_DestroyMutex(mutex);
- mutex = NULL;
-+#else
-+ SDL_SemPost(rsem);
-+#endif
- SDL_CloseAudio();
-+#if 0
-+#else
-+ SDL_DestroySemaphore(rsem);
-+ SDL_DestroySemaphore(wsem);
-+#endif
- }
-
- void systemSoundPause()
-@@ -3139,9 +3167,15 @@ bool systemPauseOnFrame()
-
- void Init_Overlay(SDL_Surface *gbascreen, int overlaytype)
- {
--
-- overlay = SDL_CreateYUVOverlay( GBA_WIDTH,
-- GBA_HEIGHT,
-+ int width;
-+
-+ if (overlaytype == SDL_YUY2_OVERLAY)
-+ width = srcWidth *2;
-+ else
-+ width = srcWidth;
-+
-+ overlay = SDL_CreateYUVOverlay( width,
-+ srcHeight,
- overlaytype, gbascreen);
- fprintf(stderr, "Created %dx%dx%d %s %s overlay\n",
- overlay->w,overlay->h,overlay->planes,
-@@ -3304,19 +3338,15 @@ inline void ConvertRGBtoYUY2(SDL_Overlay
-
- SDL_LockYUVOverlay(o);
-
-- for(y=0; y<160 && y<o->h; y++) {
-+ for(y=0; y<srcHeight && y<o->h; y++) {
- p=(Uint8 *)pix+srcPitch*y;
- op=o->pixels[0]+o->pitches[0]*y;
-- for(x=0; x<240 && x<o->w; x++) {
-+ for(x=0; x<srcWidth && x<o->w; x++) {
- RGBtoYUV(p,yuv);
-- if(x%2==0) {
-- *(op++)=yuv[0];
-- *(op++)=yuv[1];
-- op[1]=yuv[2];
-- } else {
-- *op=yuv[0];
-- op+=2;
-- }
-+ *(op++)=yuv[0];
-+ *(op++)=yuv[1];
-+ *(op++)=yuv[0];
-+ *(op++)=yuv[2];
-
- p+=4; //s->format->BytesPerPixel;
- }
-@@ -3358,11 +3388,6 @@ inline void Draw_Overlay(SDL_Surface *di
-
- Convert32bit(display);
-
-- overlay_rect.x = 0;
-- overlay_rect.y = 0;
-- overlay_rect.w = GBA_WIDTH * size;
-- overlay_rect.h = GBA_HEIGHT * size;
--
- SDL_DisplayYUVOverlay(overlay, &overlay_rect);
- SDL_UnlockYUVOverlay(overlay);
- }
-@@ -3378,9 +3403,8 @@ void systemGbBorderOn()
- destWidth = (sizeOption+1)*srcWidth;
- destHeight = (sizeOption+1)*srcHeight;
-
-- surface = SDL_SetVideoMode(destWidth, destHeight, 16,
-- SDL_ANYFORMAT|SDL_HWSURFACE|SDL_DOUBLEBUF|
-- (fullscreen ? SDL_FULLSCREEN : 0));
-+ surface = Set_Video(true);
-+
- #ifndef C_CORE
- sdlMakeStretcher(srcWidth);
- #else
-@@ -3440,3 +3464,46 @@ void systemGbBorderOn()
- srcPitch = srcWidth*3;
- }
- }
-+
-+SDL_Surface *
-+Set_Video(bool first)
-+{
-+ int flags;
-+
-+ flags = SDL_HWSURFACE|SDL_DOUBLEBUF;
-+ if (first) {
-+ flags |= SDL_ANYFORMAT;
-+ systemColorDepth = 16;
-+ }
-+
-+ if(fullscreen)
-+ flags |= SDL_FULLSCREEN;
-+
-+ destWidth = srcWidth*(sizeOption+1);
-+ destHeight = srcHeight*(sizeOption+1);
-+
-+ if (yuv) {
-+ double mul, mul2;
-+
-+ if (fullscreen) {
-+ SDL_Rect **mode;
-+ if ((mode=SDL_ListModes(NULL, SDL_FULLSCREEN|SDL_HWSURFACE))
-+ != NULL) {
-+ destWidth = mode[0]->w;
-+ destHeight = mode[0]->h;
-+ }
-+ }
-+
-+ mul = (double)destWidth/srcWidth;
-+ mul2 = (double)destHeight/srcHeight;
-+ if (mul2 < mul)
-+ mul = mul2;
-+
-+ overlay_rect.w = (Uint16)(srcWidth*mul);
-+ overlay_rect.h = (Uint16)(srcHeight*mul);
-+ overlay_rect.x = (destWidth-overlay_rect.w)/2;
-+ overlay_rect.y = (destHeight-overlay_rect.h)/2;
-+ }
-+
-+ return SDL_SetVideoMode(destWidth, destHeight, systemColorDepth, flags);
-+}
diff --git a/emulators/vba/patches/patch-ad b/emulators/vba/patches/patch-ad
deleted file mode 100644
index c7cf6603d88..00000000000
--- a/emulators/vba/patches/patch-ad
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD: patch-ad,v 1.1 2007/02/16 01:52:20 wiz Exp $
-
---- src/prof/gmon.h.orig 2002-11-20 14:29:08.000000000 +0100
-+++ src/prof/gmon.h
-@@ -119,7 +119,7 @@
-
- struct tostruct
- {
-- char *selfpc;
-+ uint32_t selfpc;
- int count;
- unsigned short link;
- };
diff --git a/emulators/vba/patches/patch-ae b/emulators/vba/patches/patch-ae
deleted file mode 100644
index 68520bdd5cb..00000000000
--- a/emulators/vba/patches/patch-ae
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD: patch-ae,v 1.1 2007/02/16 01:52:20 wiz Exp $
-
---- src/prof/prof.cpp.orig 2004-05-13 16:31:58.000000000 +0200
-+++ src/prof/prof.cpp
-@@ -279,7 +279,7 @@ void profCleanup()
-
- void profCount()
- {
-- register char *selfpc;
-+ register u32 selfpc;
- register unsigned short *frompcindex;
- register struct tostruct *top;
- register struct tostruct *prevtop;
-@@ -292,7 +292,7 @@ void profCount()
-
- /* selfpc = pc pushed by mcount call.
- This identifies the function that was just entered. */
-- selfpc = (char *) reg[14].I;
-+ selfpc = (u32) reg[14].I;
- /* frompcindex = pc in preceding frame.
- This identifies the caller of the function just entered. */
- frompcindex = (unsigned short *) reg[12].I;
diff --git a/emulators/vba/patches/patch-af b/emulators/vba/patches/patch-af
deleted file mode 100644
index a393cb13744..00000000000
--- a/emulators/vba/patches/patch-af
+++ /dev/null
@@ -1,43 +0,0 @@
-$NetBSD: patch-af,v 1.2 2012/03/29 20:32:34 wiz Exp $
-
---- src/sdl/debugger.cpp.orig 2004-05-13 14:13:14.000000000 +0000
-+++ src/sdl/debugger.cpp
-@@ -950,9 +950,9 @@ void debuggerBreakOnWrite(u32 *mem, u32
- {
- u32 address = 0;
- if(mem >= (u32*)&workRAM[0] && mem <= (u32*)&workRAM[0x3ffff])
-- address = 0x2000000 + ((u32)mem - (u32)&workRAM[0]);
-+ address = 0x2000000 + (u32)((u8 *)mem - &workRAM[0]);
- else
-- address = 0x3000000 + ((u32)mem - (u32)&internalRAM[0]);
-+ address = 0x3000000 + (u32)((u8 *)mem - &internalRAM[0]);
-
- if(size == 2)
- printf("Breakpoint (on write) address %08x old:%08x new:%08x\n",
-@@ -1280,7 +1280,7 @@ void debuggerMemoryByte(int n, char **ar
- if(n == 2) {
- u32 addr = 0;
- sscanf(args[1], "%x", &addr);
-- for(int i = 0; i < 16; i++) {
-+ for(int s = 0; s < 16; s++) {
- int a = debuggerReadByte(addr);
- int b = debuggerReadByte(addr+1);
- int c = debuggerReadByte(addr+2);
-@@ -1316,7 +1316,7 @@ void debuggerMemoryHalfWord(int n, char
- u32 addr = 0;
- sscanf(args[1], "%x", &addr);
- addr = addr & 0xfffffffe;
-- for(int i = 0; i < 16; i++) {
-+ for(int s = 0; s < 16; s++) {
- int a = debuggerReadByte(addr);
- int b = debuggerReadByte(addr+1);
- int c = debuggerReadByte(addr+2);
-@@ -1352,7 +1352,7 @@ void debuggerMemory(int n, char **args)
- u32 addr = 0;
- sscanf(args[1], "%x", &addr);
- addr = addr & 0xfffffffc;
-- for(int i = 0; i < 16; i++) {
-+ for(int s = 0; s < 16; s++) {
- int a = debuggerReadByte(addr);
- int b = debuggerReadByte(addr+1);
- int c = debuggerReadByte(addr+2);
diff --git a/emulators/vba/patches/patch-ag b/emulators/vba/patches/patch-ag
deleted file mode 100644
index b15dc9e980a..00000000000
--- a/emulators/vba/patches/patch-ag
+++ /dev/null
@@ -1,72 +0,0 @@
-$NetBSD: patch-ag,v 1.4 2020/03/26 02:35:31 joerg Exp $
-
-- Fix build with png-1.5.
-- Do not use void * as a synonym for gzFile, as gzFile is no longer
- void * in libz 1.2.6.
-- Use const syntax correctly: const void * != void *const.
-
---- src/Util.cpp.orig 2004-05-20 17:42:37.000000000 +0000
-+++ src/Util.cpp
-@@ -47,7 +47,7 @@ extern "C" {
- #define _stricmp strcasecmp
- #endif // ! _MSC_VER
-
--static int (*utilGzWriteFunc)(gzFile, const voidp, unsigned int) = NULL;
-+static int (*utilGzWriteFunc)(gzFile, voidpc, unsigned int) = NULL;
- static int (*utilGzReadFunc)(gzFile, voidp, unsigned int) = NULL;
- static int (*utilGzCloseFunc)(gzFile) = NULL;
-
-@@ -79,7 +79,7 @@ bool utilWritePNGFile(const char *fileNa
- return false;
- }
-
-- if(setjmp(png_ptr->jmpbuf)) {
-+ if(setjmp(png_jmpbuf(png_ptr))) {
- png_destroy_write_struct(&png_ptr,NULL);
- fclose(fp);
- return false;
-@@ -478,7 +478,7 @@ bool utilIsGBAImage(const char * file)
- {
- cpuIsMultiBoot = false;
- if(strlen(file) > 4) {
-- char * p = strrchr(file,'.');
-+ const char * p = strrchr(file,'.');
-
- if(p != NULL) {
- if(_stricmp(p, ".gba") == 0)
-@@ -502,7 +502,7 @@ bool utilIsGBAImage(const char * file)
- bool utilIsGBImage(const char * file)
- {
- if(strlen(file) > 4) {
-- char * p = strrchr(file,'.');
-+ const char * p = strrchr(file,'.');
-
- if(p != NULL) {
- if(_stricmp(p, ".gb") == 0)
-@@ -522,7 +522,7 @@ bool utilIsGBImage(const char * file)
- bool utilIsZipFile(const char *file)
- {
- if(strlen(file) > 4) {
-- char * p = strrchr(file,'.');
-+ const char * p = strrchr(file,'.');
-
- if(p != NULL) {
- if(_stricmp(p, ".zip") == 0)
-@@ -552,7 +552,7 @@ bool utilIsRarFile(const char *file)
- bool utilIsGzipFile(const char *file)
- {
- if(strlen(file) > 3) {
-- char * p = strrchr(file,'.');
-+ const char * p = strrchr(file,'.');
-
- if(p != NULL) {
- if(_stricmp(p, ".gz") == 0)
-@@ -984,7 +984,7 @@ void utilWriteData(gzFile gzFile, variab
-
- gzFile utilGzOpen(const char *file, const char *mode)
- {
-- utilGzWriteFunc = (int (*)(void *,void * const, unsigned int))gzwrite;
-+ utilGzWriteFunc = (int (*)(gzFile, const void *, unsigned int))gzwrite;
- utilGzReadFunc = gzread;
- utilGzCloseFunc = gzclose;
-
diff --git a/emulators/vba/patches/patch-src_GBA.cpp b/emulators/vba/patches/patch-src_GBA.cpp
deleted file mode 100644
index bb1f99f52f6..00000000000
--- a/emulators/vba/patches/patch-src_GBA.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-$NetBSD: patch-src_GBA.cpp,v 1.1 2020/03/26 02:35:31 joerg Exp $
-
---- src/GBA.cpp.orig 2020-03-26 01:54:39.059748437 +0000
-+++ src/GBA.cpp
-@@ -1130,7 +1130,7 @@ bool CPUWriteBMPFile(const char *fileNam
- bool CPUIsZipFile(const char * file)
- {
- if(strlen(file) > 4) {
-- char * p = strrchr(file,'.');
-+ const char * p = strrchr(file,'.');
-
- if(p != NULL) {
- if(_stricmp(p, ".zip") == 0)
-@@ -1145,7 +1145,7 @@ bool CPUIsGBAImage(const char * file)
- {
- cpuIsMultiBoot = false;
- if(strlen(file) > 4) {
-- char * p = strrchr(file,'.');
-+ const char * p = strrchr(file,'.');
-
- if(p != NULL) {
- if(_stricmp(p, ".gba") == 0)
-@@ -1169,7 +1169,7 @@ bool CPUIsGBAImage(const char * file)
- bool CPUIsGBABios(const char * file)
- {
- if(strlen(file) > 4) {
-- char * p = strrchr(file,'.');
-+ const char * p = strrchr(file,'.');
-
- if(p != NULL) {
- if(_stricmp(p, ".gba") == 0)
-@@ -1189,7 +1189,7 @@ bool CPUIsGBABios(const char * file)
- bool CPUIsELF(const char *file)
- {
- if(strlen(file) > 4) {
-- char * p = strrchr(file,'.');
-+ const char * p = strrchr(file,'.');
-
- if(p != NULL) {
- if(_stricmp(p, ".elf") == 0)
diff --git a/emulators/vba/patches/patch-src_expr.cpp b/emulators/vba/patches/patch-src_expr.cpp
deleted file mode 100644
index 66bd5114a81..00000000000
--- a/emulators/vba/patches/patch-src_expr.cpp
+++ /dev/null
@@ -1,17 +0,0 @@
-$NetBSD: patch-src_expr.cpp,v 1.1 2020/03/26 02:35:31 joerg Exp $
-
---- src/expr.cpp.orig 2020-03-26 02:01:18.613760749 +0000
-+++ src/expr.cpp
-@@ -14,12 +14,10 @@
-
- #line 1 "expr.y"
-
--namespace std {
- #include <stdio.h>
- #include <memory.h>
- #include <stdlib.h>
- #include <string.h>
--}
-
- using namespace std;
-
diff --git a/emulators/vba/patches/patch-src_expr.y b/emulators/vba/patches/patch-src_expr.y
deleted file mode 100644
index 73ddda03603..00000000000
--- a/emulators/vba/patches/patch-src_expr.y
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_expr.y,v 1.1 2020/03/26 02:35:31 joerg Exp $
-
---- src/expr.y.orig 2020-03-26 02:00:05.333831596 +0000
-+++ src/expr.y
-@@ -1,10 +1,8 @@
- %{
--namespace std {
- #include <stdio.h>
- #include <memory.h>
- #include <stdlib.h>
- #include <string.h>
--}
-
- using namespace std;
-
diff --git a/emulators/vba/patches/patch-src_memgzio.c b/emulators/vba/patches/patch-src_memgzio.c
deleted file mode 100644
index aff26d496ec..00000000000
--- a/emulators/vba/patches/patch-src_memgzio.c
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-src_memgzio.c,v 1.1 2012/09/29 21:27:14 dholland Exp $
-
-- Use const types correctly: const void * != void *const.
-
---- src/memgzio.c~ 2004-01-17 23:07:32.000000000 +0000
-+++ src/memgzio.c
-@@ -540,7 +540,7 @@ int ZEXPORT memgzread (file, buf, len)
- */
- int ZEXPORT memgzwrite (file, buf, len)
- gzFile file;
-- const voidp buf;
-+ voidpc buf;
- unsigned len;
- {
- mem_stream *s = (mem_stream*)file;
diff --git a/emulators/vba/patches/patch-src_memgzio.h b/emulators/vba/patches/patch-src_memgzio.h
deleted file mode 100644
index d494f9d1ea1..00000000000
--- a/emulators/vba/patches/patch-src_memgzio.h
+++ /dev/null
@@ -1,14 +0,0 @@
-$NetBSD: patch-src_memgzio.h,v 1.1 2012/09/29 21:27:14 dholland Exp $
-
-- Use const types correctly: const void * != void *const.
-
---- src/memgzio.h~ 2003-07-24 13:21:52.000000000 +0000
-+++ src/memgzio.h
-@@ -16,6 +16,6 @@
-
- gzFile ZEXPORT memgzopen(char *memory, int, const char *);
- int ZEXPORT memgzread(gzFile, voidp, unsigned);
--int ZEXPORT memgzwrite(gzFile, const voidp, unsigned);
-+int ZEXPORT memgzwrite(gzFile, voidpc, unsigned);
- int ZEXPORT memgzclose(gzFile);
- long ZEXPORT memtell(gzFile);