aboutsummaryrefslogtreecommitdiff
path: root/compat.h
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2022-03-28 08:42:13 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2022-04-06 14:19:52 +0100
commit1c69a91c25654339a0e670ed5a1495d52b37eb8e (patch)
treea55101c3181c5a776e68833f032d16cd534fe444 /compat.h
parent98de5784a0a35681b736dc11bb6758a08d428562 (diff)
downloadrtmux-1c69a91c25654339a0e670ed5a1495d52b37eb8e.tar.gz
rtmux-1c69a91c25654339a0e670ed5a1495d52b37eb8e.tar.bz2
rtmux-1c69a91c25654339a0e670ed5a1495d52b37eb8e.zip
Add support for systemd socket activation (where systemd creates the Unix
domain socket for tmux rather than tmux creating it). Build with --enable-systemd. From Julien Moutinho in GitHub issue 3119.
Diffstat (limited to 'compat.h')
-rw-r--r--compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/compat.h b/compat.h
index be726831..6eb97619 100644
--- a/compat.h
+++ b/compat.h
@@ -421,6 +421,11 @@ void *reallocarray(void *, size_t, size_t);
void *recallocarray(void *, size_t, size_t, size_t);
#endif
+#ifdef HAVE_SYSTEMD
+/* systemd.c */
+int systemd_create_socket(int, char **);
+#endif
+
#ifdef HAVE_UTF8PROC
/* utf8proc.c */
int utf8proc_wcwidth(wchar_t);