parent
c08f70f7a8
commit
0d406c93dd
3 changed files with 34 additions and 0 deletions
11
srcpkgs/bzflag/patches/NetHandler-musl.patch
Normal file
11
srcpkgs/bzflag/patches/NetHandler-musl.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- src/game/NetHandler.cxx-orig 2018-01-22 12:28:31.043278572 -0600
|
||||||
|
+++ src/game/NetHandler.cxx 2018-01-22 12:28:07.889568033 -0600
|
||||||
|
@@ -135,7 +135,7 @@
|
||||||
|
uint16_t code;
|
||||||
|
while (true) {
|
||||||
|
n = recvfrom(udpSocket, buffer, MaxUDPPacketLen, 0, (struct sockaddr *) uaddr,
|
||||||
|
- &recvlen);
|
||||||
|
+ (socklen_t*)&recvlen);
|
||||||
|
if ((n < 0) || (n >= 4))
|
||||||
|
break;
|
||||||
|
}
|
11
srcpkgs/bzflag/patches/bzfs-musl.patch
Normal file
11
srcpkgs/bzflag/patches/bzfs-musl.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- src/bzfs/bzfs.cxx-orig 2018-01-22 14:58:45.381583835 -0600
|
||||||
|
+++ src/bzfs/bzfs.cxx 2018-01-22 14:58:55.584456281 -0600
|
||||||
|
@@ -1260,7 +1260,7 @@
|
||||||
|
// accept incoming connection on our well known port
|
||||||
|
struct sockaddr_in clientAddr;
|
||||||
|
AddrLen addr_len = sizeof(clientAddr);
|
||||||
|
- int fd = accept(wksSocket, (struct sockaddr*)&clientAddr, &addr_len);
|
||||||
|
+ int fd = accept(wksSocket, (struct sockaddr*)&clientAddr, (socklen_t*)&addr_len);
|
||||||
|
if (fd == -1) {
|
||||||
|
nerror("accepting on wks");
|
||||||
|
return;
|
12
srcpkgs/bzflag/template
Normal file
12
srcpkgs/bzflag/template
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# Template file for 'bzflag'
|
||||||
|
pkgname=bzflag
|
||||||
|
version=2.4.12
|
||||||
|
revision=1
|
||||||
|
build_style=gnu-configure
|
||||||
|
makedepends="c-ares-devel zlib-devel libcurl-devel MesaLib-devel SDL2-devel"
|
||||||
|
short_desc="3D networked multi-player tank battle game"
|
||||||
|
maintainer="Andrew Benson <abenson+void@gmail.com>"
|
||||||
|
license="LGPL-2.1"
|
||||||
|
homepage="https://www.bzflag.org"
|
||||||
|
distfiles="https://download.bzflag.org/bzflag/source/$version/bzflag-${version}.tar.gz"
|
||||||
|
checksum=4af05a3c5e92c8c4fb96bb178c08daa2e33858d976e8fe96a3a77fd521dfa8e9
|
Loading…
Reference in a new issue