This is from Debian and makes koules compile a bit more cleanly. --- koules-1.4.orig/xlib/interface.c +++ koules-1.4/xlib/interface.c @@ -154,7 +155,7 @@ { register unsigned char *data = (unsigned char *) source.vbuff, *end = (unsigned char *) source.vbuff + MAPWIDTH * (MAPHEIGHT + 20); - register unsigned long *out = (unsigned long *) source.ximage->data; + register uint32_t *out = (uint32_t *) source.ximage->data; while (data < end) { *out = rpixels[*data]; --- koules-1.4.orig/koules.sndsrv.linux.c +++ koules-1.4/koules.sndsrv.linux.c @@ -181,7 +180,7 @@ void do_everything (int dsp, int is_pcsp) { - char k; + signed char k; int i, j; int terminate = -1; /* Which Sound to Terminate */ int playing[16]; /* Sound numbers that we are playing */ Index: koules-1.4/rcfiles.c =================================================================== --- koules-1.4.orig/rcfiles.c 2006-11-03 11:12:56.000000000 +0100 +++ koules-1.4/rcfiles.c 2006-11-03 11:12:58.000000000 +0100 @@ -20,6 +20,7 @@ /* Changes for joystick "accelerate by deflection" * * (c) 1997 by Ludvik Tesar (Ludv\'{\i}k Tesa\v{r}) * ************************LT*********************************/ +#include <errno.h> #include "koules.h" #ifdef XSUPPORT static CONST char *name = ".xkoules-controls"; Index: koules-1.4/xlib/interface.c =================================================================== --- koules-1.4.orig/xlib/interface.c 1998-03-05 18:19:44.000000000 +0100 +++ koules-1.4/xlib/interface.c 2006-11-03 11:12:58.000000000 +0100 @@ -14,6 +14,7 @@ *----------------------------------------------------------* * interface.c interface xlib graphics functions * ***********************************************************/ +#include <stdint.h> #include <X11/Xlib.h> #include <X11/keysym.h> #include <X11/keysymdef.h> Index: koules-1.4/xlib/init.c =================================================================== --- koules-1.4.orig/xlib/init.c 2006-11-03 11:12:54.000000000 +0100 +++ koules-1.4/xlib/init.c 2006-11-03 11:12:58.000000000 +0100 @@ -30,6 +30,7 @@ #include "../framebuffer.h" #include <sys/time.h> +#include <time.h> #include <unistd.h> #include "../mygetopt.h" #include <sys/signal.h> Index: koules-1.4/xlib/text.c =================================================================== --- koules-1.4.orig/xlib/text.c 2006-11-03 11:13:03.000000000 +0100 +++ koules-1.4/xlib/text.c 2006-11-03 11:13:17.000000000 +0100 @@ -4,6 +4,7 @@ #ifdef MITSHM #include <stdlib.h> +#include <string.h> #include "inlstring.h" /* include inline string operations */ #include "interface.h"