build: fix some compile errors
src/pty.c: SIGUNUSED -> SIGSYS The SIGUNUSED define (31) has been removed as part of glibc 2.26, which is used in Fedora 27 and Ubuntu 17.10. https://bugs.swift.org/browse/SR-6409 src/uterm_vt.c: Add sys/sysmacros.h minor was defined in sys/sysmacros.h. So i add the header file uterm_vt.c.
This commit is contained in:
parent
0b34527199
commit
62539b1d24
@ -299,7 +299,7 @@ static void setup_child(int master, struct winsize *ws)
|
||||
if (ret)
|
||||
log_warn("cannot reset blocked signals: %m");
|
||||
|
||||
for (i = 1; i < SIGUNUSED; ++i)
|
||||
for (i = 1; i < SIGSYS; ++i)
|
||||
signal(i, SIG_DFL);
|
||||
|
||||
ret = grantpt(master);
|
||||
|
@ -50,6 +50,7 @@
|
||||
#include "shl_misc.h"
|
||||
#include "uterm_input.h"
|
||||
#include "uterm_vt.h"
|
||||
#include <sys/sysmacros.h>
|
||||
|
||||
#define LOG_SUBSYSTEM "vt"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user