From: Eric Bollengier Date: Thu, 12 Jan 2023 16:37:08 +0000 (+0100) Subject: Fix compilation for AIX X-Git-Tag: Beta-15.0.0~274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f97b81b25bdccd3d54c930da40dbe41d50deac36;p=thirdparty%2Fbacula.git Fix compilation for AIX --- diff --git a/bacula/src/findlib/fstype.c b/bacula/src/findlib/fstype.c index f4c0bd749..41d5b0f25 100644 --- a/bacula/src/findlib/fstype.c +++ b/bacula/src/findlib/fstype.c @@ -527,8 +527,12 @@ bool fstype(FF_PKT *ff_pkt, char *fs, int fslen) /* Read mtab entries */ bool read_mtab(mtab_handler_t *mtab_handler, void *user_ctx) { +#ifdef HAVE_AIX_OS + return false; +#else /* Debian stretch GNU/KFreeBSD has both getmntinfo and getmntent, but - only the first seems to work, so we skip over getmntent in this case */ + * only the first seems to work, so we skip over getmntent in this case + */ #ifndef HAVE_KFREEBSD_OS #ifdef HAVE_GETMNTENT FILE *mntfp; @@ -621,6 +625,7 @@ bool read_mtab(mtab_handler_t *mtab_handler, void *user_ctx) V(mutex); #endif /* HAVE_GETMNTINFO */ return true; +#endif // HAVE_AIX_OS } /*