tm: unbreak

This commit is contained in:
Zexin Yuan
2025-05-02 10:48:57 +08:00
parent 032bc6539b
commit 08b5c11cb5
2 changed files with 29 additions and 0 deletions
@@ -0,0 +1,24 @@
diff --git a/unix_client.c b/unix_client.c
index 920910a..6d608fd 100644
--- a/unix_client.c
+++ b/unix_client.c
@@ -8,6 +8,7 @@
#include <sys/socket.h>
#include <unistd.h>
#include <assert.h>
+#include <string.h>
#include "main.h"
#include "handlers.h"
diff --git a/unix_server.c b/unix_server.c
index 5cf93ed..d3c51c9 100644
--- a/unix_server.c
+++ b/unix_server.c
@@ -8,6 +8,7 @@
#include <assert.h>
#include <unistd.h>
#include <stdio.h>
+#include <string.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <sys/select.h>
+5
View File
@@ -15,6 +15,11 @@ stdenv.mkDerivation rec {
makeFlags = [ "PREFIX=$(out)" ];
patches = [
# fix using strncpy and strlen without including string.h
./missing-string-header.patch
];
postPatch = ''
sed -i 's@/usr/bin/install@install@g ; s/gcc/cc/g' Makefile
'';