mirror of
https://github.com/tmux/tmux.git
synced 2024-12-24 18:38:48 +00:00
Add headers and fix type, from Marvin Schmidt. GitHub issue 3332.
This commit is contained in:
parent
0a0ded3268
commit
19344ec890
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#include <systemd/sd-daemon.h>
|
#include <systemd/sd-daemon.h>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
#include "tmux.h"
|
#include "tmux.h"
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -29,7 +31,7 @@ systemd_create_socket(int flags, char **cause)
|
|||||||
int fds;
|
int fds;
|
||||||
int fd;
|
int fd;
|
||||||
struct sockaddr_un sa;
|
struct sockaddr_un sa;
|
||||||
int addrlen = sizeof sa;
|
socklen_t addrlen = sizeof sa;
|
||||||
|
|
||||||
fds = sd_listen_fds(0);
|
fds = sd_listen_fds(0);
|
||||||
if (fds > 1) { /* too many file descriptors */
|
if (fds > 1) { /* too many file descriptors */
|
||||||
|
Loading…
Reference in New Issue
Block a user