Hi folks
In mountlist.c hasmntopt() is used in two places, once properly protected by a HAVE_HASMNTOPT and a second time without that protection (inside a ifdef MOUNTED_GETMNTENT1). The following seems to fix it properly. diff --git a/lib/mountlist.c b/lib/mountlist.c index 8fb7e9a..78fe6df 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -128,8 +128,11 @@ # include <sys/mntent.h> #endif +#ifndef HAVE_HASMNTOPT +# define hasmntopt(mnt, opt) NULL +#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 Discovered on HP-NonStop, where we implemented our own getmntent(), setmntent(), endmntent(), but not (yet) a hasmntopt() Bye, Jojo