summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2003-10-25 10:21:09 +0000
committerMike Frysinger <vapier@gentoo.org>2003-10-25 10:21:09 +0000
commit24205fae25e80e20caea0d01db3a905edf5ade63 (patch)
tree0ed61b4ab33eaaf5fa383f9518a2f9603010dd31 /games-rpg/twclone/files/0.12-glibc-sendmsg.patch
parentforgot prepgamesdirs (diff)
downloadhistorical-24205fae25e80e20caea0d01db3a905edf5ade63.tar.gz
historical-24205fae25e80e20caea0d01db3a905edf5ade63.tar.bz2
historical-24205fae25e80e20caea0d01db3a905edf5ade63.zip
doesnt really need X
Diffstat (limited to 'games-rpg/twclone/files/0.12-glibc-sendmsg.patch')
-rw-r--r--games-rpg/twclone/files/0.12-glibc-sendmsg.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/games-rpg/twclone/files/0.12-glibc-sendmsg.patch b/games-rpg/twclone/files/0.12-glibc-sendmsg.patch
new file mode 100644
index 000000000000..c19b0afb2aae
--- /dev/null
+++ b/games-rpg/twclone/files/0.12-glibc-sendmsg.patch
@@ -0,0 +1,36 @@
+diff -ur twclone-source-0.12.orig/msgqueue.c twclone-source-0.12/msgqueue.c
+--- twclone-source-0.12.orig/msgqueue.c 2003-10-25 06:11:18.830318400 -0400
++++ twclone-source-0.12/msgqueue.c 2003-10-25 06:11:46.805065592 -0400
+@@ -98,7 +98,7 @@
+ return;
+ }
+
+-void sendmsg (int msgid, char *buffer, long mtype)
++void safesendmsg (int msgid, char *buffer, long mtype)
+ {
+ void *msg = malloc (sizeof (struct msgbuffer));
+
+diff -ur twclone-source-0.12.orig/msgqueue.h twclone-source-0.12/msgqueue.h
+--- twclone-source-0.12.orig/msgqueue.h 2003-10-25 06:11:18.830318400 -0400
++++ twclone-source-0.12/msgqueue.h 2003-10-25 06:11:50.502503496 -0400
+@@ -122,7 +122,7 @@
+ int init_msgqueue ();
+ void clean_msgqueues(int msgidin, int msgidout, char *filename);
+ long getmsg (int msgid, char *buffer, long mtype);
+-void sendmsg (int msgid, char *buffer, long mtype);
++void safesendmsg (int msgid, char *buffer, long mtype);
+ void senddata (int msgid, struct msgcommand *data, long mtype);
+ long getdata (int msgid, struct msgcommand *data, long mtype);
+
+diff -ur twclone-source-0.12.orig/server.c twclone-source-0.12/server.c
+--- twclone-source-0.12.orig/server.c 2003-10-25 06:11:18.831318248 -0400
++++ twclone-source-0.12/server.c 2003-10-25 06:11:58.972215904 -0400
+@@ -205,7 +205,7 @@
+ while (data.command != ct_quit || senderid != threadid) //Main game loop
+ {
+ processcommand (buffer, &data);
+- sendmsg (msgidout, buffer, senderid);
++ safesendmsg (msgidout, buffer, senderid);
+ senderid = getdata (msgidin, &data, 0);
+ }
+ saveallports ();