summaryrefslogtreecommitdiffstats
path: root/term-utils/agetty.c
diff options
context:
space:
mode:
authorSami Kerola2015-01-07 20:44:26 +0100
committerSami Kerola2015-01-07 22:57:53 +0100
commit4ebac79f015c67aee373c0673496e72c01d18dbd (patch)
treee89fe41f78182da79d52dee009175ac9d65910fd /term-utils/agetty.c
parentdocs: add howto-pull-request.txt (diff)
downloadkernel-qcow2-util-linux-4ebac79f015c67aee373c0673496e72c01d18dbd.tar.gz
kernel-qcow2-util-linux-4ebac79f015c67aee373c0673496e72c01d18dbd.tar.xz
kernel-qcow2-util-linux-4ebac79f015c67aee373c0673496e72c01d18dbd.zip
build-sys: fix make checkincludes warnings
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'term-utils/agetty.c')
-rw-r--r--term-utils/agetty.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/term-utils/agetty.c b/term-utils/agetty.c
index 2ac0644df..1aafe72a1 100644
--- a/term-utils/agetty.c
+++ b/term-utils/agetty.c
@@ -45,15 +45,16 @@
#include "widechar.h"
#include "ttyutils.h"
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
+
#if defined(__FreeBSD_kernel__)
#include <pty.h>
-#include <sys/param.h>
#endif
-
#ifdef __linux__
# include <sys/kd.h>
-# include <sys/param.h>
# define USE_SYSLOG
# ifndef DEFAULT_VCTERM
# define DEFAULT_VCTERM "linux"