diff --git a/linuxdoom-1.10/i_sound.c b/linuxdoom-1.10/i_sound.c index a327bfa29..ee18e19c6 100644 --- a/linuxdoom-1.10/i_sound.c +++ b/linuxdoom-1.10/i_sound.c @@ -24,6 +24,7 @@ static const char rcsid[] = "$Id: i_unix.c,v 1.5 1997/02/03 22:45:10 b1 Exp $"; +#include #include #include #include @@ -163,7 +164,6 @@ myioctl int* arg ) { int rc; - extern int errno; rc = ioctl(fd, command, arg); if (rc < 0) diff --git a/linuxdoom-1.10/i_video.c b/linuxdoom-1.10/i_video.c index 9b311b39a..2b07fa2aa 100644 --- a/linuxdoom-1.10/i_video.c +++ b/linuxdoom-1.10/i_video.c @@ -46,7 +46,7 @@ int XShmGetEventBase( Display* dpy ); // problems with g++? #include #include -#include +#include #include #include "doomstat.h" @@ -768,7 +768,7 @@ void I_InitGraphics(void) // use the default visual X_screen = DefaultScreen(X_display); - if (!XMatchVisualInfo(X_display, X_screen, 8, PseudoColor, &X_visualinfo)) + if (!XMatchVisualInfo(X_display, X_screen, 4, PseudoColor, &X_visualinfo)) I_Error("xdoom currently only supports 256-color PseudoColor screens"); X_visual = X_visualinfo.visual;