From 62bb7a8bf95807d6339e1e17fc0d21c319b280a2 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 19 Feb 2013 13:04:35 -0800 Subject: [PATCH] mountlist: port to HP NonStop Reported by Joachim Schmitz in . * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function. (MNT_IGNORE) [MNTOPT_IGNORE]: Use it. --- ChangeLog | 8 ++++++++ lib/mountlist.c | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 050ad4d4c5..79bda7015e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2013-02-19 Paul Eggert + + mountlist: port to HP NonStop + Reported by Joachim Schmitz in + . + * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function. + (MNT_IGNORE) [MNTOPT_IGNORE]: Use it. + 2013-02-18 Paul Eggert extern-inline: avoid compilation error with HP-UX cc diff --git a/lib/mountlist.c b/lib/mountlist.c index 8fb7e9ab74..d8d54646c1 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -128,8 +128,12 @@ # include #endif +#ifndef HAVE_HASMNTOPT +# define hasmntopt(mnt, opt) ((char *) 0) +#endif + #undef MNT_IGNORE -#if defined MNTOPT_IGNORE && defined HAVE_HASMNTOPT +#ifdef MNTOPT_IGNORE # define MNT_IGNORE(M) hasmntopt (M, MNTOPT_IGNORE) #else # define MNT_IGNORE(M) 0 -- 2.39.5