]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix compilation for AIX
authorEric Bollengier <eric@baculasystems.com>
Thu, 12 Jan 2023 16:37:08 +0000 (17:37 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:00 +0000 (13:57 +0200)
bacula/src/findlib/fstype.c

index f4c0bd749d726f11c3987bb665a5f119ee7d4ade..41d5b0f2563adbfa5978263723f3276ffeb09b02 100644 (file)
@@ -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
 } 
 
 /*