Mercurial > hg > octave-kai > gnulib-hg
changeset 17340: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 | ec15ef10261d 201622d6d12f |
files | ChangeLog lib/mountlist.c |
diffstat | 2 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -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 +++ b/lib/mountlist.c @@ -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