Files
ports/games/maelstrom/patches/patch-Maelstrom-netd_c
T
2025-12-15 19:30:08 +00:00

26 lines
585 B
Plaintext

ports-gcc: fix warnings of implicit built-in functions
Index: Maelstrom-netd.c
--- Maelstrom-netd.c.orig
+++ Maelstrom-netd.c
@@ -8,8 +8,10 @@
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
+#include <arpa/inet.h>
#include <netinet/in.h>
#include <netdb.h>
+#include <stdlib.h>
#include <unistd.h>
/* We wait in a loop for players to connect and tell us how many people
@@ -181,7 +183,7 @@ void I_Crashed(int sig)
exit(sig);
}
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
int netfd, i, slot;
struct sockaddr_in serv_addr;