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

index 41d5b0f2563adbfa5978263723f3276ffeb09b02..c6f0523893e464b6ff378c1a344d60bd8a37b03c 100644 (file)
@@ -23,7 +23,6 @@
  *   Updated by Kern Sibbald, April MMXV
  */
 
-
 #ifndef TEST_PROGRAM
 
 #include "bacula.h"
@@ -186,9 +185,16 @@ bool fstype(char *fname, FF_PKT *ff_pkt, char *fs, int fslen)
 
 #elif defined(HAVE_HPUX_OS)                     \
    || defined(HAVE_IRIX_OS)
+   || defined(HAVE_AIX_OS)
 
 #include <sys/types.h>
 #include <sys/statvfs.h>
+   
+#ifdef HAVE_AIX_OS
+ #ifndef NAME_MAX
+  #define NAME_MAX 2048
+ #endif
+#endif
 
 /*
  * TODO: RPK: is HP-UX version really working as I cannot find required API in HP-UX docs.
@@ -522,6 +528,12 @@ bool fstype(FF_PKT *ff_pkt, char *fs, int fslen)
    Dmsg0(10, "!!! fstype() not implemented for this OS. !!!\n");
    return false;
 }
+bool fstype(char *fname, FF_PKT *ff_pkt, char *fs, int fslen)
+{
+   Dmsg0(10, "!!! fstype() not implemented for this OS. !!!\n");
+   return false;
+}
+
 #endif
 
 /* Read mtab entries  */