diff options
author | Nick Sayer <nsayer@FreeBSD.org> | 2001-03-26 16:51:54 +0000 |
---|---|---|
committer | Nick Sayer <nsayer@FreeBSD.org> | 2001-03-26 16:51:54 +0000 |
commit | a967a694ca6a1f378e2a4042af0757c8aaefe315 (patch) | |
tree | a6e0176365b16aedf744dc99d8492745774ddc24 /games/bzflag/files/patch-multicast.cxx | |
parent | Add ruby-sdl, a Ruby extension library to use SDL library. Currently (diff) |
1. Update to 1.7e.1. d.9 is no longer interoperable.
2. Get rid of half-speed audio flag. It breaks audio on Yamaha chipsets.
3. The program maintainer has a bad habit of morphing the distfile and
WRKSRC name. Grr.
4. Some patches were subsumed and thus deleted. Other stuff has come up
though and thus must be patched.
5. Take over MAINTAINERship.
PR: ports/26112
Approved by: nbm
Notes
Notes:
svn path=/head/; revision=40402
Diffstat (limited to 'games/bzflag/files/patch-multicast.cxx')
-rw-r--r-- | games/bzflag/files/patch-multicast.cxx | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/games/bzflag/files/patch-multicast.cxx b/games/bzflag/files/patch-multicast.cxx new file mode 100644 index 000000000000..9b46b05e56d0 --- /dev/null +++ b/games/bzflag/files/patch-multicast.cxx @@ -0,0 +1,44 @@ +--- 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, |