]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
login: Include <linux/major.h> only if it exists.
authorThomas Schwinge <thomas@codesourcery.com>
Fri, 25 May 2012 18:16:15 +0000 (20:16 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 29 May 2012 08:11:35 +0000 (10:11 +0200)
It isn't required on non-Linux systems.

Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
login-utils/login.c

index 7b4f8b56644e0d203df5d983449b084deb7a76ee..346f23bdbc4e254909b84d6389873746d158d076 100644 (file)
@@ -49,7 +49,9 @@
 #include <stdlib.h>
 #include <sys/syslog.h>
 #include <sys/sysmacros.h>
-#include <linux/major.h>
+#ifdef HAVE_LINUX_MAJOR_H
+# include <linux/major.h>
+#endif
 #include <netdb.h>
 #include <lastlog.h>
 #include <security/pam_appl.h>