diff options
author | Steve Price <steve@FreeBSD.org> | 2000-02-27 23:21:48 +0000 |
---|---|---|
committer | Steve Price <steve@FreeBSD.org> | 2000-02-27 23:21:48 +0000 |
commit | b42ca1d4466262ef9fb3fbd25ba3a77ce6a47cbf (patch) | |
tree | fc9643862009d76f077f0f55e42d75fc1d65da86 /games/znibbles | |
parent | - Don't tromple the contents of MAKE_ENV otherwise MOTIF_LIB isn't defined. (diff) |
Fix build errors on -current.
Notes
Notes:
svn path=/head/; revision=26394
Diffstat (limited to 'games/znibbles')
-rw-r--r-- | games/znibbles/files/patch-aa | 55 |
1 files changed, 55 insertions, 0 deletions
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) { |