Check for sys/mount.h and sys/vfs.h headers and include them conditionally

This commit is contained in:
Gleb Popov 2021-02-24 19:02:47 +03:00 committed by Wim Taymans
parent c5e42aa9db
commit dbc9a520ef
4 changed files with 20 additions and 1 deletions

View file

@ -41,7 +41,12 @@
#include <sys/time.h>
#include <arpa/inet.h>
#include <fcntl.h>
#if HAVE_SYS_VFS_H
#include <sys/vfs.h>
#endif
#if HAVE_SYS_MOUNT_H
#include <sys/mount.h>
#endif
#if HAVE_PWD_H
#include <pwd.h>
#endif