From 1eb16fd78065dd6485731c4fb70924bc9b69df3a Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Thu, 26 May 2016 15:05:14 +0200 Subject: build-sys: add --disable-plymouth-support The plymouth support depends on Linux specific SOCK_* flags and all the feature is probably unnecessary in some cases (non-plymouth distros, etc.) Signed-off-by: Karel Zak --- term-utils/agetty.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'term-utils/agetty.c') diff --git a/term-utils/agetty.c b/term-utils/agetty.c index ab82fdbc8..d12a3f1c7 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -41,12 +41,15 @@ #include "all-io.h" #include "nls.h" #include "pathnames.h" -#include "plymouth-ctrl.h" #include "c.h" #include "widechar.h" #include "ttyutils.h" #include "color-names.h" +#ifdef USE_PLYMOUTH_SUPPORT +# include "plymouth-ctrl.h" +#endif + #ifdef HAVE_SYS_PARAM_H # include #endif @@ -1175,8 +1178,8 @@ static void termio_init(struct options *op, struct termios *tp) { speed_t ispeed, ospeed; struct winsize ws; +#ifdef USE_PLYMOUTH_SUPPORT struct termios lock; -#ifdef TIOCGLCKTRMIOS int i = (plymouth_command(MAGIC_PING) == 0) ? PLYMOUTH_TERMIOS_FLAGS_DELAY : 0; if (i) plymouth_command(MAGIC_QUIT); -- cgit v1.2.3-55-g7522