void-packages/srcpkgs/bzflag/patches/bzfs-musl.patch

12 lines
506 B
Diff
Raw Normal View History

2018-09-27 20:31:10 +02:00
--- src/bzfs/bzfs.cxx.orig 2018-09-27 08:34:45.781489776 +0200
+++ src/bzfs/bzfs.cxx 2018-09-27 08:35:47.688492106 +0200
@@ -1312,7 +1312,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");