nixpkgs/pkgs/by-name/ma/maelstrom/add-maelstrom-netd-include-time.diff
ghpzin 756b7e3f8a maelstrom: fix build with gcc14
- add patch with `#include <time.h>` fixing:
`error: implicit declaration of function 'time'`
2025-03-30 02:03:58 +03:00

13 lines
376 B
Diff

diff --git a/Maelstrom-netd.c b/Maelstrom-netd.c
index 3e6e942..41ed9a5 100644
--- a/Maelstrom-netd.c
+++ b/Maelstrom-netd.c
@@ -13,6 +13,7 @@
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
+#include <time.h>
/* We wait in a loop for players to connect and tell us how many people
are playing. Then, once all players have connected, then we broadcast