diff options
| author | bptato <nincsnevem662@gmail.com> | 2024-04-12 00:35:42 +0200 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2024-04-12 00:35:42 +0200 |
| commit | b77810d07984f6586529b60e0b1e4238b639e488 (patch) | |
| tree | fdf5fe5a72601672934c71897c428f8c3a16c5f4 /src/io | |
| parent | 8c3202f9ab838628e5360b6e118150bdc397bf23 (diff) | |
| download | chawan-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.
Diffstat (limited to 'src/io')
| -rw-r--r-- | src/io/bind_unix.c | 1 | ||||
| -rw-r--r-- | src/io/connect_unix.c | 1 |
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) { |