diff options
| author | Jan Beich <jbeich@FreeBSD.org> | 2021-01-19 15:05:22 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-23 09:16:23 +0000 |
| commit | 14e761179b8cdafc6088bf221c8a5f7d70ca56ec (patch) | |
| tree | cacc92985120ff0a8191f6f7b96ef641314c8919 | |
| parent | client/server: switch to POSIX header for sockaddr_un (diff) | |
terminal: add/exclude missing headers
terminal.c:3:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
^~~~~~~~~~
terminal.c:1512:9: error: implicit declaration of function 'sigaction' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
sigaction(SIGALRM, &(const struct sigaction){.sa_handler = &sig_alarm}, NULL);
^
terminal.c:1532:21: error: implicit declaration of function 'kill' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
kill(term->slave, kill_signal);
^
| -rw-r--r-- | terminal.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1,6 +1,9 @@ #include "terminal.h" +#if defined(__GLIBC__) #include <malloc.h> +#endif +#include <signal.h> #include <string.h> #include <unistd.h> #include <assert.h> |
