]> err.no Git - util-linux/commitdiff
only include vt.h et al if we're using that code
authorLaMont Jones <lamont@mix.mmjgroup.com>
Mon, 9 Jul 2007 20:46:40 +0000 (14:46 -0600)
committerLaMont Jones <lamont@mix.mmjgroup.com>
Mon, 9 Jul 2007 20:46:40 +0000 (14:46 -0600)
login-utils/agetty.c

index 390e65b95c4c7bf042fa816c22c60663c9167ff1..806c3d9835bc929f67d5a3a514b7c1776ea870ab 100644 (file)
@@ -30,8 +30,6 @@
 #include <getopt.h>
 #include <time.h>
 #include <sys/file.h>
-#include <sys/vt.h>
-#include <linux/tty.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>
@@ -696,6 +694,8 @@ open_tty(tty, tp, local)
 #if 0
        if (strncmp(tty,"tty",3) == 0)
        {
+#include <sys/vt.h>
+#include <linux/tty.h>
            char *end;
            int vtno;