summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
Diffstat (limited to 'games')
-rw-r--r--games/xspacewarp/files/patch-aa11
-rw-r--r--games/xspacewarp/files/patch-ab101
-rw-r--r--games/xspacewarp/files/patch-ac15
-rw-r--r--games/znibbles/files/patch-aa55
4 files changed, 182 insertions, 0 deletions
diff --git a/games/xspacewarp/files/patch-aa b/games/xspacewarp/files/patch-aa
new file mode 100644
index 000000000000..ed3b8c118622
--- /dev/null
+++ b/games/xspacewarp/files/patch-aa
@@ -0,0 +1,11 @@
+--- c_endever.hh.orig Sun Feb 27 12:21:09 2000
++++ c_endever.hh Sun Feb 27 12:21:27 2000
+@@ -35,7 +35,7 @@
+ bool nomove() const {return (nomoveflag);}
+ void setnomove(bool nm) {nomoveflag = nm;}
+ static void seticon(const char *str);
+- static geticon_len();
++ static int geticon_len();
+ private:
+ int torpedoes;
+ bool docked; // whether docked to a base
diff --git a/games/xspacewarp/files/patch-ab b/games/xspacewarp/files/patch-ab
new file mode 100644
index 000000000000..95f91e2ed765
--- /dev/null
+++ b/games/xspacewarp/files/patch-ab
@@ -0,0 +1,101 @@
+--- xprep.hh.orig Sun Feb 27 12:22:21 2000
++++ xprep.hh Sun Feb 27 12:27:25 2000
+@@ -194,7 +194,7 @@
+ sizeof(Boolean),
+ XtOffsetOf(AppData, nomouse),
+ XtRString,
+- "False"
++ (XtPointer) "False"
+ },
+ {
+ XtNrows,
+@@ -365,7 +365,7 @@
+ sizeof(Pixel),
+ XtOffsetOf(AppData, foreground),
+ XtRString,
+- XtDefaultForeground
++ (XtPointer) XtDefaultForeground
+ },
+ {
+ XtNbackground,
+@@ -374,7 +374,7 @@
+ sizeof(Pixel),
+ XtOffsetOf(AppData, background),
+ XtRString,
+- XtDefaultBackground
++ (XtPointer) XtDefaultBackground
+ },
+ {
+ XtNendeverColor,
+@@ -383,7 +383,7 @@
+ sizeof(Pixel),
+ XtOffsetOf(AppData, endever_color),
+ XtRString,
+- XtDefaultForeground
++ (XtPointer) XtDefaultForeground
+ },
+ {
+ XtNendeverIcon,
+@@ -401,7 +401,7 @@
+ sizeof(Pixel),
+ XtOffsetOf(AppData, jovian_color),
+ XtRString,
+- XtDefaultForeground
++ (XtPointer) XtDefaultForeground
+ },
+ {
+ XtNjovianIcon,
+@@ -419,7 +419,7 @@
+ sizeof(Pixel),
+ XtOffsetOf(AppData, base_color),
+ XtRString,
+- XtDefaultForeground
++ (XtPointer) XtDefaultForeground
+ },
+ {
+ XtNbaseIcon,
+@@ -437,7 +437,7 @@
+ sizeof(Pixel),
+ XtOffsetOf(AppData, star_color),
+ XtRString,
+- XtDefaultForeground
++ (XtPointer) XtDefaultForeground
+ },
+ {
+ XtNstarIcon,
+@@ -455,7 +455,7 @@
+ sizeof(Pixel),
+ XtOffsetOf(AppData, blackhole_color),
+ XtRString,
+- XtDefaultForeground
++ (XtPointer) XtDefaultForeground
+ },
+ {
+ XtNblackholeIcon,
+@@ -473,7 +473,7 @@
+ sizeof(Pixel),
+ XtOffsetOf(AppData, faser_color),
+ XtRString,
+- XtDefaultForeground
++ (XtPointer) XtDefaultForeground
+ },
+ {
+ XtNfaserWidth,
+@@ -518,7 +518,7 @@
+ sizeof(Pixel),
+ XtOffsetOf(AppData, torpedo_color),
+ XtRString,
+- XtDefaultForeground
++ (XtPointer) XtDefaultForeground
+ },
+ {
+ XtNtorpedoWidth,
+@@ -554,7 +554,7 @@
+ sizeof(Pixel),
+ XtOffsetOf(AppData, explosion_color),
+ XtRString,
+- XtDefaultForeground
++ (XtPointer) XtDefaultForeground
+ },
+ {
+ XtNexplosionSpeed,
diff --git a/games/xspacewarp/files/patch-ac b/games/xspacewarp/files/patch-ac
new file mode 100644
index 000000000000..27a9c80ed361
--- /dev/null
+++ b/games/xspacewarp/files/patch-ac
@@ -0,0 +1,15 @@
+--- c_jovian.cc.orig Fri Dec 29 01:41:56 1995
++++ c_jovian.cc Sun Feb 27 12:30:41 2000
+@@ -22,10 +22,12 @@
+
+ // these AI functions are kept in separate file c_jovian_ai.cc
+
++#if 0
+ extern Action Jovian::pick_action();
+ extern Direction Jovian::pick_direction();
+ extern Ucoors Jovian::pick_sector();
+ extern Point Jovian::pick_target();
++#endif
+
+
+ Jovian::Jovian(): Combatant()
diff --git a/games/znibbles/files/patch-aa b/games/znibbles/files/patch-aa
new file mode 100644
index 000000000000..c74f800d8b65
--- /dev/null
+++ b/games/znibbles/files/patch-aa
@@ -0,0 +1,55 @@
+--- src/ServerInterface.C.orig Sun Feb 27 12:09:00 2000
++++ src/ServerInterface.C Sun Feb 27 12:13:13 2000
+@@ -48,6 +48,9 @@
+ #include <errno.h>
+
+ #include <sys/times.h>
++#ifdef __FreeBSD__
++#include <sys/param.h>
++#endif
+
+ #include "DLList.h" // Doubly linked lists
+
+@@ -230,9 +233,15 @@
+ socket_service = -1;
+ while (socket_service == -1) {
+ // wait for connection
++#if defined(__FreeBSD__) && (__FreeBSD_version >= 400013)
++ socket_service = accept(socket_ecoute,
++ (struct sockaddr *) &address,
++ (socklen_t *) &lg_address);
++#else
+ socket_service = accept(socket_ecoute,
+ (struct sockaddr *) &address,
+ &lg_address);
++#endif
+
+ // Reception d'un signal (probablement SIGCHLD)
+ if(socket_service == -1 && errno == EINTR) {
+@@ -305,8 +314,8 @@
+ } else if (strcmp(line, "p") == 0) { // pause
+ xpaused = !xpaused;
+ display_system_message(((xpaused)
+- ? "Pausing...\n"
+- : "Running...\n"));
++ ? (char *)"Pausing...\n"
++ : (char *)"Running...\n"));
+ continue;
+ } else if (strcmp(line, "-") == 0) { // slower...
+ if (debug) {
+@@ -433,9 +442,15 @@
+
+ while (read_ready(socketnum)) {
+
++#if defined(__FreeBSD__) && (__FreeBSD_version >= 400013)
++ socket_service = accept(socketnum,
++ (struct sockaddr *) &address,
++ (socklen_t *) &lg_address);
++#else
+ socket_service = accept(socketnum,
+ (struct sockaddr *) &address,
+ &lg_address);
++#endif
+
+ // s'il y a une erreur, ce n'est pas une EINTR (cf appel a read_ready())
+ if(socket_service == -1) {