From f97b81b25bdccd3d54c930da40dbe41d50deac36 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 12 Jan 2023 17:37:08 +0100 Subject: [PATCH] Fix compilation for AIX --- bacula/src/findlib/fstype.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 } /* -- 2.47.3