@@ -0,0 +1,25 @@
1+diff --git a/src/pty.c b/src/pty.c
2+index 3494104..1443f4a 100644
3+--- a/src/pty.c
4++++ b/src/pty.c
5+@@ -299,7 +299,7 @@ static void setup_child(int master, struct winsize *ws)
6+ if (ret)
7+ log_warn("cannot reset blocked signals: %m");
8+
9+- for (i = 1; i < SIGUNUSED; ++i)
10++ for (i = 1; i < SIGSYS; ++i)
11+ signal(i, SIG_DFL);
12+
13+ ret = grantpt(master);
14+diff --git a/src/uterm_vt.c b/src/uterm_vt.c
15+index af377f5..fbe9e76 100644
16+--- a/src/uterm_vt.c
17++++ b/src/uterm_vt.c
18+@@ -40,6 +40,7 @@
19+ #include <sys/ioctl.h>
20+ #include <sys/signalfd.h>
21+ #include <sys/stat.h>
22++#include <sys/sysmacros.h>
23+ #include <termios.h>
24+ #include <time.h>
25+ #include <unistd.h>