summaryrefslogtreecommitdiff
path: root/games/bzflag/files/patch-multicast.cxx
diff options
context:
space:
mode:
authorNick Sayer <nsayer@FreeBSD.org>2001-03-28 18:21:31 +0000
committerNick Sayer <nsayer@FreeBSD.org>2001-03-28 18:21:31 +0000
commitf842afba9d3c0dce2ef5ac53c7406d081eef93ba (patch)
treec5349c3657fa36f0b41063c6cda3a70aa227fa18 /games/bzflag/files/patch-multicast.cxx
parentThe KeLP author changed his distfile without bumping version. (diff)
More patch housecleaning. patch-aa replaces the separate patches. It is
a version from the author that will be merged in a future version. Putting it in a single file like this will make it easy to get rid of in the next release. Also, clean up the config file a bit, including respect for ${X11BASE}
Notes
Notes: svn path=/head/; revision=40497
Diffstat (limited to '')
-rw-r--r--games/bzflag/files/patch-multicast.cxx44
1 files changed, 0 insertions, 44 deletions
diff --git a/games/bzflag/files/patch-multicast.cxx b/games/bzflag/files/patch-multicast.cxx
deleted file mode 100644
index 9b46b05e56d0..000000000000
--- a/games/bzflag/files/patch-multicast.cxx
+++ /dev/null
@@ -1,44 +0,0 @@
---- src/net/multicast.cxx.orig Mon Mar 26 07:21:54 2001
-+++ src/net/multicast.cxx Mon Mar 26 07:24:31 2001
-@@ -174,6 +174,7 @@
- struct ip_mreq mreq;
- struct in_addr ifaddr;
- int fd;
-+ unsigned int opt;
-
- /* check parameters */
- if (!addr) {
-@@ -322,7 +323,7 @@
- else {
- #if defined(SO_REUSEPORT)
- /* set reuse port */
-- int opt = 1;
-+ opt = 1;
- if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT,
- (SSOType)&opt, sizeof(opt)) < 0) {
- nerror("WARNING: openMulticast: setsockopt SO_REUSEPORT");
-@@ -335,7 +336,7 @@
- #if defined(_WIN32)
- BOOL opt = TRUE;
- #else
-- int opt = 1;
-+ opt = 1;
- #endif
- if (setsockopt(fd, SOL_SOCKET, SO_REUSEADDR,
- (SSOType)&opt, sizeof(opt)) < 0) {
-@@ -384,12 +385,12 @@
- int setMulticastTTL(int fd, int ttl)
- {
- #if defined(_WIN32)
-- unsigned int opt = (unsigned int)ttl;
-+ opt = (unsigned int)ttl;
- #else /* defined(_WIN32) */
-- unsigned char opt = (unsigned char)ttl;
-+ unsigned char Copt = (unsigned char)ttl;
- #endif /* defined(_WIN32) */
- return setsockopt(fd, IPPROTO_IP, IP_MULTICAST_TTL,
-- (SSOType)&opt, sizeof(opt));
-+ (SSOType)&Copt, sizeof(Copt));
- }
-
- int sendMulticast(int fd, const void* buffer,