]> git.ipfire.org Git - thirdparty/bacula.git/commit
fix ifdef logic in fs_get_free_space()
authorAlain Spineux <alain@baculasystems.com>
Mon, 26 Jun 2023 09:45:32 +0000 (11:45 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:57:01 +0000 (13:57 +0200)
commita021f22d18922c0ad7a98abb6bfe93ea3e644680
tree970049537612f287c4d12a3fc123abc7ad70fd12
parent0170491fa023782ff839a3df7ac814afb5a96aa0
fix ifdef logic in fs_get_free_space()

- this
#if defined(HAVE_WIN32)
#elif defined(HAVE_SYS_STATVFS_H) || !defined(HAVE_WIN32)
#endif
  is equivalent to
#if defined(HAVE_WIN32)
#else
#endif
  as the HAVE_WIN32 are in the if and the elif
- there is no reason to "care" about "statvfs()" as the fallback is to use
  statfs (see the line above, that I reproduce here):
#ifdef HAVE_SYS_STATVFS_H
#include <sys/statvfs.h>
#else
#define statvfs statfs
#endif
- the other commits related to this piece of code are
c8d10999f1789b88f9f93d29b512e7af10fd009d
33b01b743fa5629828f61fa1300234785c999afa
db82b457bf1dede1225a53c37e60d2d30af84b3b
bacula/src/lib/bsys.c