summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2022-09-19 07:03:17 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2022-09-19 07:03:17 +0100
commit19344ec890e0c4343e3c20695806d482c631d67c (patch)
tree3ab0a15441ccc657f5d50a0bb834daa4366713cd /compat
parent0a0ded32685edafe934b767e6df9d218e227eb95 (diff)
Add headers and fix type, from Marvin Schmidt. GitHub issue 3332.
Diffstat (limited to 'compat')
-rw-r--r--compat/systemd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/compat/systemd.c b/compat/systemd.c
index 7317e43a..9a3adbb3 100644
--- a/compat/systemd.c
+++ b/compat/systemd.c
@@ -21,6 +21,8 @@
#include <systemd/sd-daemon.h>
+#include <string.h>
+
#include "tmux.h"
int
@@ -29,7 +31,7 @@ systemd_create_socket(int flags, char **cause)
int fds;
int fd;
struct sockaddr_un sa;
- int addrlen = sizeof sa;
+ socklen_t addrlen = sizeof sa;
fds = sd_listen_fds(0);
if (fds > 1) { /* too many file descriptors */