shithub: choc

Download patch

ref: 350fb1e60c6761d7171df663035846bacc2b8fde
parent: e13972ba77d29e118adff0c1cd0807f134a6bde8
author: Jacob Moody <moody@posixcafe.org>
date: Sun Jan 29 05:24:01 EST 2023

compile i_input.c, works with small npe tweaks

--- a/src/i_input.c
+++ b/src/i_input.c
@@ -219,6 +219,8 @@
         // which can affect other responders.
         //
         // So we're stuck with this as a rather fragile alternative.
+#ifndef __plan9__
+// ouch!
 
         if (SDL_PeepEvents(&next_event, 1, SDL_PEEKEVENT,
                            SDL_FIRSTEVENT, SDL_LASTEVENT) == 1
@@ -235,6 +237,7 @@
                 return next_event.text.text[0];
             }
         }
+#endif
 
         // Failed to find anything :/
         return 0;
--- a/src/mkfile
+++ b/src/mkfile
@@ -28,7 +28,7 @@
 	i_cdmus.$O \
 	i_endoom.$O \
 	i_glob.$O \
-#	i_input.$O \
+	i_input.$O \
 #	i_joystick.$O \
 #	i_musicpack.$O \
 #	i_oplmusic.$O \