Mercurial > gnulib
changeset 17332:e6a6fd004283
mountlist: port to HP NonStop
Reported by Joachim Schmitz in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>.
* lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
(MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 19 Feb 2013 13:04:35 -0800 |
parents | bfb7633de5b0 |
children | 201622d6d12f ec15ef10261d |
files | ChangeLog lib/mountlist.c |
diffstat | 2 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <eggert@cs.ucla.edu> + + mountlist: port to HP NonStop + Reported by Joachim Schmitz in + <http://lists.gnu.org/archive/html/bug-gnulib/2013-02/msg00084.html>. + * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function. + (MNT_IGNORE) [MNTOPT_IGNORE]: Use it. + 2013-02-18 Paul Eggert <eggert@cs.ucla.edu> extern-inline: avoid compilation error with HP-UX cc
--- 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 <sys/mntent.h> #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