popa3d: fix build with gcc15 (#515989)

This commit is contained in:
Peder Bergebakken Sundt
2026-05-05 21:41:38 +00:00
committed by GitHub
2 changed files with 23 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
diff --git a/standalone.c b/standalone.c
index 216d937..2bce0e8 100644
--- a/standalone.c
+++ b/standalone.c
@@ -108,7 +108,7 @@ int do_standalone(void)
int main(void)
#endif
{
- int true = 1;
+ int opt = 1;
int sock, new;
struct sockaddr_in addr;
socklen_t addrlen;
@@ -123,7 +123,7 @@ int main(void)
return log_error("socket");
if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR,
- (void *)&true, sizeof(true)))
+ (void *)&opt, sizeof(opt)))
return log_error("setsockopt");
memset(&addr, 0, sizeof(addr));
+1
View File
@@ -21,6 +21,7 @@ stdenv.mkDerivation (finalAttrs: {
./use-openssl.patch
./use-glibc-crypt.patch
./enable-standalone-mode.patch
./fix-gcc15.patch
];
enableParallelBuilding = true;