]> Savannah Git Hosting - gnulib.git/commitdiff
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 050ad4d4c56992e847e4966258b54b83f60bbc42..79bda7015edcf7e8d0bc113b434dd328d2178bbd 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 8fb7e9ab747d5cf17e0964073aeeb6284215c268..d8d54646c11572d718d324da4c6b871efd89c13e 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