All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Schwinge <thomas@codesourcery.com>
To: util-linux@vger.kernel.org
Cc: Thomas Schwinge <thomas@codesourcery.com>
Subject: [PATCH 4/7] login: Include <linux/major.h> only if it exists.
Date: Fri, 25 May 2012 20:16:15 +0200	[thread overview]
Message-ID: <1337969778-3154-4-git-send-email-thomas@codesourcery.com> (raw)
In-Reply-To: <1337969778-3154-1-git-send-email-thomas@codesourcery.com>

It isn't required on non-Linux systems.

Signed-off-by: Thomas Schwinge <thomas@codesourcery.com>
---
 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


  parent reply	other threads:[~2012-05-25 18:16 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-25 18:13 Portability patches for GNU/Hurd Thomas Schwinge
2012-05-25 18:13 ` [PATCH] test_pager: Repair build for non-Linux Thomas Schwinge
2012-05-29  8:00   ` Karel Zak
2012-05-25 18:16 ` [PATCH 1/7] kill, raw, rename: Don't explicitly enable for --enable-most-builds Thomas Schwinge
2012-05-25 18:16   ` [PATCH 2/7] arch, eject, elvtune: Gracefully disable on non-Linux platforms Thomas Schwinge
2012-05-29  8:01     ` Karel Zak
2012-05-25 18:16   ` [PATCH 3/7] last, login, write: Provide a fallback for MAXHOSTNAMELEN, as elsewhere Thomas Schwinge
2012-05-29  8:10     ` Karel Zak
2012-05-29  8:40       ` Thomas Schwinge
2012-05-25 18:16   ` Thomas Schwinge [this message]
2012-05-25 18:16   ` [PATCH 5/7] write: Use PATH_MAX instead of MAXPATHLEN, " Thomas Schwinge
2012-05-29  8:14     ` Karel Zak
2012-05-25 18:16   ` [PATCH 6/7] write: Don't explicitly include <asm/param.h> Thomas Schwinge
2012-05-29  8:14     ` Karel Zak
2012-05-25 18:16   ` [PATCH 7/7] setsid: Include <sys/ioctl.h> instead of <termio.h> Thomas Schwinge
2012-05-29  8:14     ` Karel Zak
2012-05-29  8:01   ` [PATCH 1/7] kill, raw, rename: Don't explicitly enable for --enable-most-builds Karel Zak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1337969778-3154-4-git-send-email-thomas@codesourcery.com \
    --to=thomas@codesourcery.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.