# HG changeset patch # User Paul Eggert # Date 1361307875 28800 # Node ID e6a6fd004283badd7f69d02db7eb1560fb198865 # Parent bfb7633de5b063d3952fd2265cbc77591e807456 mountlist: port to HP NonStop Reported by Joachim Schmitz in . * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function. (MNT_IGNORE) [MNTOPT_IGNORE]: Use it. diff -r bfb7633de5b0 -r e6a6fd004283 ChangeLog --- a/ChangeLog Tue Feb 19 12:30:32 2013 -0800 +++ b/ChangeLog Tue Feb 19 13:04:35 2013 -0800 @@ -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 -r bfb7633de5b0 -r e6a6fd004283 lib/mountlist.c --- a/lib/mountlist.c Tue Feb 19 12:30:32 2013 -0800 +++ b/lib/mountlist.c Tue Feb 19 13:04:35 2013 -0800 @@ -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