|
|
|
[PATCH 4/7] login: Include <linux/major.h> only if it exists. | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
It isn't required on non-Linux systems. Signed-off-by: Thomas Schwinge <thomas@xxxxxxxxxxxxxxxx> --- login-utils/login.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/login-utils/login.c b/login-utils/login.c index f459b79..7384940 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -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> -- 1.7.9 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
[Site Home] [Netdev] [Ethernet Bridging] [Linux Wireless] [Kernel Newbies] [Memory] [Security] [Linux for Hams] [Netfilter] [Bugtraq] [Rubini] [Photo] [Yosemite] [Yosemite News] [MIPS Linux] [ARM Linux] [Linux RAID] [Linux Admin] [Samba] [Video 4 Linux] [Linux Resources]