From: Eric Bollengier Date: Fri, 13 Jan 2023 12:13:05 +0000 (+0100) Subject: Fix AIX compilation X-Git-Tag: Beta-15.0.0~273 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7cbfaf26d3c54653dcfef9f4bc6987c6c14420c7;p=thirdparty%2Fbacula.git Fix AIX compilation --- diff --git a/bacula/src/findlib/fstype.c b/bacula/src/findlib/fstype.c index 41d5b0f25..c6f052389 100644 --- a/bacula/src/findlib/fstype.c +++ b/bacula/src/findlib/fstype.c @@ -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 #include + +#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 */