summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
authorKarel Zak2016-05-26 15:05:14 +0200
committerKarel Zak2016-05-26 15:08:53 +0200
commit1eb16fd78065dd6485731c4fb70924bc9b69df3a (patch)
tree76deb5ccf39a4e491bbc830860087af3c43f3076 /term-utils/agetty.c
parentlibblkid: store only canonical devnames to the cache (diff)
downloadkernel-qcow2-util-linux-1eb16fd78065dd6485731c4fb70924bc9b69df3a.tar.gz
kernel-qcow2-util-linux-1eb16fd78065dd6485731c4fb70924bc9b69df3a.tar.xz
kernel-qcow2-util-linux-1eb16fd78065dd6485731c4fb70924bc9b69df3a.zip
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 <kzak@redhat.com>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c7
1 files changed, 5 insertions, 2 deletions
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 <sys/param.h>
#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);