summaryrefslogtreecommitdiff
path: root/emulators/gngb/files/patch-src_serial.c
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-22 18:38:06 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-22 18:38:06 +0000
commita8b4a281c42c022147a984fa7aaf77ad149278c7 (patch)
treee405a6a742aba68094c2dcca2febfb6b21978a51 /emulators/gngb/files/patch-src_serial.c
parentchinese/zh-librime: Update to 1.6.1 (diff)
Fix build with -fno-common
Diffstat (limited to 'emulators/gngb/files/patch-src_serial.c')
-rw-r--r--emulators/gngb/files/patch-src_serial.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/emulators/gngb/files/patch-src_serial.c b/emulators/gngb/files/patch-src_serial.c
new file mode 100644
index 000000000000..b62cde810cf3
--- /dev/null
+++ b/emulators/gngb/files/patch-src_serial.c
@@ -0,0 +1,19 @@
+--- src/serial.c.orig 2003-07-27 16:20:30 UTC
++++ src/serial.c
+@@ -51,11 +51,16 @@
+ #define SOCKET int
+ #endif
+
++Sint8 gblisten;
++
+ SDL_Thread *thread;
+ int thread_fun(void *data);
+
+ SOCKET dest_socket=-1;
+ SOCKET listen_socket=-1;
++
++Sint16 serial_cycle_todo;
++gbserial_t gbserial;
+
+ void gngb_closesocket(SOCKET s){
+ #ifdef WIN32