Hi,

Here is a patch that should solve this issue.

Regards,
Patrice
--- a/src/rom.c
+++ b/src/rom.c
@@ -29,9 +29,6 @@
 #ifdef HAVE_DIRENT_H
 #include <dirent.h>
 #endif
-#ifdef HAVE_ZLIB_H
-#include <zlib.h>
-#endif
 
 #include <stdlib.h>
 #include <string.h>
@@ -48,7 +45,8 @@
 
 #define FILENAME_LEN 1024
 
-int zip_file_open_next_rom(file);
+#include "unzip.h"
+int zip_file_open_next_rom(unzFile file);
 
 char *rom_name;
 ROM_TIMER *rom_timer;
--- a/src/memory.c
+++ b/src/memory.c
@@ -75,7 +75,7 @@
 /*
 Sint16 joy_x_min=0;joy_x_max=0;joy_y_min=0;joy_y_max=0;
 */
-Sint16 joy_x_min=-32767;joy_x_max=32767;joy_y_min=-32767;joy_y_max=32767;
+Sint16 joy_x_min=-32767,joy_x_max=32767,joy_y_min=-32767,joy_y_max=32767;
 
 void (*select_rom_page)(Uint16 adr,Uint8 v);
 void (*select_ram_page)(Uint16 adr,Uint8 v);
--- a/src/serial.c
+++ b/src/serial.c
@@ -217,6 +217,7 @@
 #endif
 }
 
+#if 0
 Sint8 gbserial_receive(void) {
 #ifndef WIN32
   Sint8 b;
@@ -236,6 +237,7 @@
   }
 #endif
 }
+#endif
 
 Uint8 gbserial_check2(void) {
 #ifndef WIN32
@@ -258,17 +260,20 @@
 #endif
 }
 
+#if 0
 Uint8 gbserial_wait_data(void) {
   Uint8 b;
   Uint8 c;
   
   if ((b=read(dest_socket,&c,1))<=0) return 0;
-  write(dest_socket,SB,1);
+  write(dest_socket,&SB,1);
   set_interrupt(SERIAL_INT);
   SB=c;
   return 1;
 }
+#endif
 
+#if 0
 int thread_fun(void *data) {
   Sint8 n;
   while(!conf.gb_done) {
@@ -283,6 +288,7 @@
   }
   return 0;
 }
+#endif
 
 /* New GbSerial */
 
--- a/src/save.c
+++ b/src/save.c
@@ -651,7 +651,7 @@
 
 /* Movie */
 
-GNGB_MOVIE gngb_movie={NULL,0,NULL};
+GNGB_MOVIE gngb_movie={{0},0,NULL};
 
 void begin_save_movie(void) {
   conf.save_movie=1;

Reply via email to