From: Michal Rakowski Date: Wed, 13 Oct 2021 16:59:41 +0000 (+0200) Subject: Fix append/immutable compilation problem for Windows X-Git-Tag: Beta-15.0.0~825 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c0b84d7d62279985ff013c951552e3ee33471cd;p=thirdparty%2Fbacula.git Fix append/immutable compilation problem for Windows --- diff --git a/bacula/src/stored/file_dev.c b/bacula/src/stored/file_dev.c index d547bbdcf..e6d5b6ec0 100644 --- a/bacula/src/stored/file_dev.c +++ b/bacula/src/stored/file_dev.c @@ -594,6 +594,7 @@ bool file_dev::check_volume_protection_time(const char *vol_name) return true; } +#ifdef HAVE_FS_IOC_GETFLAGS bool file_dev::check_for_attr(const char *vol_name, int attr) { int tmp_fd, ioctl_ret, get_attr; @@ -628,7 +629,14 @@ bool file_dev::check_for_attr(const char *vol_name, int attr) return ret; } +#else +bool file_dev::check_for_attr(const char *vol_name, int attr) +{ + return true; +} +#endif // HAVE_FS_IOC_GETFLAGS +#ifdef HAVE_FS_IOC_SETFLAGS bool file_dev::modify_fattr(const char *vol_name, int attr, bool set) { bool ret = false; @@ -692,6 +700,12 @@ bail_out: } return ret; } +#else +bool file_dev::modify_fattr(const char *vol_name, int attr, bool set) +{ + return true; +} +#endif // HAVE_FS_IOC_SETFLAGS bool file_dev::set_fattr(const char *vol_name, int attr) {