summaryrefslogtreecommitdiffstats
path: root/login-utils/sulogin.c
diff options
context:
space:
mode:
authorDave Reisner2012-02-28 17:45:19 +0100
committerKarel Zak2012-03-12 11:17:43 +0100
commit5fe090d8e2eff877e5cf01a37d05fee6c2856216 (patch)
treee1317b3d8b26b6ee344ec14a17ad14297d987cf1 /login-utils/sulogin.c
parentsulogin: use pathnames.h for file locations (diff)
downloadkernel-qcow2-util-linux-5fe090d8e2eff877e5cf01a37d05fee6c2856216.tar.gz
kernel-qcow2-util-linux-5fe090d8e2eff877e5cf01a37d05fee6c2856216.tar.xz
kernel-qcow2-util-linux-5fe090d8e2eff877e5cf01a37d05fee6c2856216.zip
sulogin: header/include cleanup
- 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>
Diffstat (limited to 'login-utils/sulogin.c')
-rw-r--r--login-utils/sulogin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/login-utils/sulogin.c b/login-utils/sulogin.c
index 98caa2dbb..def733658 100644
--- a/login-utils/sulogin.c
+++ b/login-utils/sulogin.c
@@ -39,10 +39,9 @@
#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