Here's a little patch for XBoing II 2.2 for those of you who can't get it
to compile. Works for me, your mileage may vary. Patch, then follow the
INSTALL instructions. You might want to edit AUDIO_AVAILABLE if you dont'
have a soundcard, and XPMLIB and XPMINCLUDE for the location of your xpm
libs. XBoing II 2.2 is at ftp.x.org /contrib/games.

Fric@#linux.irc


diff -u --recursive --new-file xboing2.2-old/Imakefile xboing2.2/Imakefile
--- xboing2.2-old/Imakefile	Thu Jun  2 07:11:10 1994
+++ xboing2.2/Imakefile	Fri Jul 15 09:34:07 1994
@@ -10,15 +10,15 @@
 XCOMM These are some defines that must be set. Some may be overwritten in the
 XCOMM machine arch section.
 
-    XPMLIB 				= -L../xpm3.4/lib -lXpm
-    XPMINCLUDE 			= -I../xpm3.4/lib
+    XPMLIB 				= -L/lib -lXpm
+    XPMINCLUDE 			= -I/usr/include/X11
     XBOINGINCLUDE 		= -I./include
     LEVEL_INSTALL_DIR 	= $(XBOING_DIR)/levels
     SOUNDS_DIR 			= $(XBOING_DIR)/sounds
     BACKUP_DIR 			= $(XBOING_DIR)/../backups
     HIGH_SCORE_FILE 	= $(XBOING_DIR)/xboing.scr
-    AUDIO_AVAILABLE 	= False
-    AUDIO_SRC 			= audio/NOaudio.c
+    AUDIO_AVAILABLE 	= True
+    AUDIO_SRC 			= audio/LINUXaudio.c
     AUDIO_INCLUDE 		=
     AUDIO_LIB 			=
 
@@ -98,9 +98,8 @@
         -DLEVEL_INSTALL_DIR=\"$(LEVEL_INSTALL_DIR)\" \
         -DAUDIO_AVAILABLE=\"$(AUDIO_AVAILABLE)\" \
         -DSOUNDS_DIR=\"$(SOUNDS_DIR)\" \
-        -DREADMEP_FILE=\"$(XBOING_DIR)/docs/problems.doc\"
-XCOMM   -DUSE_FLOCK=\"True\" \
-XCOMM   -DNO_LOCKING=\"True\" 
+        -DREADMEP_FILE=\"$(XBOING_DIR)/docs/problems.doc\" \
+        -DNO_LOCKING=\"True\" 
 
     LOCAL_LIBRARIES = $(AUDIO_LIB) $(XPMLIB) $(XLIB) -lm
 
diff -u --recursive --new-file xboing2.2-old/include/misc.h xboing2.2/include/misc.h
--- xboing2.2-old/include/misc.h	Wed May 25 06:32:15 1994
+++ xboing2.2/include/misc.h	Fri Jul 15 09:12:46 1994
@@ -68,7 +68,7 @@
 int ObtainWindowWidthHeight(Display *display, Window window,
 	int *width, int *height);
 void sleepSync(Display *display, unsigned long ms);
-int usleep(unsigned long usec);
+/* int usleep(unsigned long usec); */
 int ObtainMousePosition(Display *display, Window window, int *x, int *y);
 int YesNoDialogue(Display *display, char *message);
 #else
diff -u --recursive --new-file xboing2.2-old/misc.c xboing2.2/misc.c
--- xboing2.2-old/misc.c	Mon May 30 10:59:39 1994
+++ xboing2.2/misc.c	Fri Jul 15 09:13:46 1994
@@ -65,31 +65,6 @@
  */
 
 #if NeedFunctionPrototypes
-int usleep(unsigned long usec)
-#else
-int usleep(usec)
-        unsigned long usec;
-#endif
-{
-#ifdef SYSV
-#ifdef __clipper__
-    struct timeval tv;
-    tv.tv_sec=((usec)/1000);
-    tv.tv_usec=(((usec)%1000)*1000);
-    select(1,NULL,NULL,NULL,&tv);
-#else
-    poll((struct poll *) 0, (size_t) 0, usec / 1000);   /* ms resolution */
-#endif
-#else
-    struct timeval timeout;
-    timeout.tv_usec = usec % (unsigned long) 1000000;
-    timeout.tv_sec = usec / (unsigned long) 1000000;
-    select(0, (void *) 0, (void *) 0, (void *) 0, &timeout);
-#endif
-    return 0;
-}
-
-#if NeedFunctionPrototypes
 void sleepSync(Display *display, unsigned long ms)
 #else
 void sleepSync(display, ms)
