]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
sulogin: header/include cleanup
authorDave Reisner <d@falconindy.com>
Tue, 28 Feb 2012 16:45:19 +0000 (11:45 -0500)
committerKarel Zak <kzak@redhat.com>
Mon, 12 Mar 2012 10:17:43 +0000 (11:17 +0100)
- use our own crypt.h compile time check
- remove ttydefaults.h include -- get this via termios.h, the same as
  agetty

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
login-utils/sulogin.c

index 98caa2dbb662ed82ccd05aa78195cce96a23ef94..def733658fc61eaa23052d125b3d35edd9f05988 100644 (file)
 #include <pwd.h>
 #include <shadow.h>
 #include <termios.h>
-#include <sys/ttydefaults.h>
 #include <errno.h>
 #include <sys/ioctl.h>
-#if defined(__GLIBC__)
+#ifdef HAVE_CRYPT_H
 #  include <crypt.h>
 #endif