diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2020-10-24 12:20:07 +0200 |
---|---|---|
committer | Pino Toscano <toscano.pino@tiscali.it> | 2020-10-24 12:20:07 +0200 |
commit | fd36dca890fada31a7910ff9427c4056949577eb (patch) | |
tree | 77df3586398137d7b8411e0f9538a2b5a63f25e9 /camlibs/directory/directory.c | |
parent | 4890b61d5fde87e8ba2aa8ab0091d54d6d7f6e20 (diff) | |
download | libgphoto2-fd36dca890fada31a7910ff9427c4056949577eb.tar.gz |
directory: enable storage_info_func on any platform
Now that a POSIX function (statvfs) is used, it is possible to
unconditionally enable storage_info_func on any platform.
The build system already checks for the availability of statvfs,
so there should be no problems using it when available.
Diffstat (limited to 'camlibs/directory/directory.c')
-rw-r--r-- | camlibs/directory/directory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/directory/directory.c b/camlibs/directory/directory.c index 9063c8fbe..55014a27d 100644 --- a/camlibs/directory/directory.c +++ b/camlibs/directory/directory.c @@ -743,7 +743,7 @@ storage_info_func (CameraFilesystem *fs, Camera *camera = data; CameraStorageInformation *sfs; -#if defined(linux) && defined(HAVE_STATVFS) +#if defined(HAVE_STATVFS) struct statvfs stfs; char *xpath; int ret; |