about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-04-12 00:35:42 +0200
committerbptato <nincsnevem662@gmail.com>2024-04-12 00:35:42 +0200
commitb77810d07984f6586529b60e0b1e4238b639e488 (patch)
treefdf5fe5a72601672934c71897c428f8c3a16c5f4
parent8c3202f9ab838628e5360b6e118150bdc397bf23 (diff)
downloadchawan-b77810d07984f6586529b60e0b1e4238b639e488.tar.gz
bind_unix, connect_unix: add string.h include
it's needed for memcpy; it usually compiles without the include, but
that's not guaranteed.
-rw-r--r--src/io/bind_unix.c1
-rw-r--r--src/io/connect_unix.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/io/bind_unix.c b/src/io/bind_unix.c
index 398c2c9e..ea0140cf 100644
--- a/src/io/bind_unix.c
+++ b/src/io/bind_unix.c
@@ -2,6 +2,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>
+#include <string.h>
 
 int bind_unix_from_c(int socket, const char *path, int pathlen)
 {
diff --git a/src/io/connect_unix.c b/src/io/connect_unix.c
index 41faab11..f5bdbfa1 100644
--- a/src/io/connect_unix.c
+++ b/src/io/connect_unix.c
@@ -2,6 +2,7 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/un.h>
+#include <string.h>
 
 int connect_unix_from_c(int socket, const char *path, int pathlen)
 {