summaryrefslogtreecommitdiffstats
path: root/games/znibbles
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2000-02-27 23:21:48 +0000
committersteve <steve@FreeBSD.org>2000-02-27 23:21:48 +0000
commitccf6270759c1ba0b4759f185a0625cb2d3e99dd0 (patch)
tree5c04d5cfc882ebe8c626d7f1aca772706adde7a3 /games/znibbles
parent2f20de15966564ddd41585be6f9965ac229944e2 (diff)
downloadFreeBSD-ports-ccf6270759c1ba0b4759f185a0625cb2d3e99dd0.zip
FreeBSD-ports-ccf6270759c1ba0b4759f185a0625cb2d3e99dd0.tar.gz
Fix build errors on -current.
Diffstat (limited to 'games/znibbles')
-rw-r--r--games/znibbles/files/patch-aa55
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 0000000..c74f800
--- /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) {
OpenPOWER on IntegriCloud