mountlist: port to HP NonStop
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Feb 2013 21:04:35 +0000 (13:04 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 19 Feb 2013 21:04:59 +0000 (13:04 -0800)
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.

ChangeLog
lib/mountlist.c

index 050ad4d..79bda70 100644 (file)
--- 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
index 8fb7e9a..d8d5464 100644 (file)
 # 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