Files
nixpkgs/pkgs/by-name/ma/maelstrom/add-maelstrom-netd-include-time.diff

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
376 B
Diff
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
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