diff --git a/config.h.meson b/config.h.meson index 9849fd459..e2223d8c5 100644 --- a/config.h.meson +++ b/config.h.meson @@ -257,6 +257,9 @@ /* Define to 1 if you have the header file. */ #mesondefine HAVE_STRING_H +/* Define to 1 if you have the header file. */ +#mesondefine HAVE_SYS_MOUNT_H + /* Define to 1 if you have the header file. */ #mesondefine HAVE_SYS_PARAM_H @@ -284,6 +287,9 @@ /* Define to 1 if you have the header file. */ #mesondefine HAVE_SYS_UTSNAME_H +/* Define to 1 if you have the header file. */ +#mesondefine HAVE_SYS_VFS_H + /* Define to 1 if you have the header file. */ #mesondefine HAVE_SYS_WAIT_H diff --git a/meson.build b/meson.build index 2c117e404..fe852cb57 100644 --- a/meson.build +++ b/meson.build @@ -214,6 +214,7 @@ check_headers = [['dlfcn.h','HAVE_DLFCN_H'], ['stdio_ext.h', 'HAVE_STDIO_EXT_H'], ['strings.h', 'HAVE_STRINGS_H'], ['string.h', 'HAVE_STRING_H'], + ['sys/mount.h', 'HAVE_SYS_MOUNT_H'], ['sys/param.h', 'HAVE_SYS_PARAM_H'], ['sys/poll.h', 'HAVE_SYS_POLL_H'], ['sys/prctl.h', 'HAVE_SYS_PRCTL_H'], @@ -223,6 +224,7 @@ check_headers = [['dlfcn.h','HAVE_DLFCN_H'], ['sys/time.h', 'HAVE_SYS_TIME_H'], ['sys/types.h', 'HAVE_SYS_TYPES_H'], ['sys/utsname.h', 'HAVE_SYS_UTSNAME_H'], + ['sys/vfs.h', 'HAVE_SYS_VFS_H'], ['sys/wait.h', 'HAVE_SYS_WAIT_H'], ['pwd.h', 'HAVE_PWD_H'], ['ucontext.h', 'HAVE_UCONTEXT_H'], diff --git a/src/modules/module-access.c b/src/modules/module-access.c index bc19a2ed4..f0daa953c 100644 --- a/src/modules/module-access.c +++ b/src/modules/module-access.c @@ -27,12 +27,18 @@ #include #include #include -#include #include #include #include "config.h" +#if HAVE_SYS_VFS_H +#include +#endif +#if HAVE_SYS_MOUNT_H +#include +#endif + #include #include diff --git a/src/modules/module-protocol-pulse/pulse-server.c b/src/modules/module-protocol-pulse/pulse-server.c index 5bc8f4537..5a2d18123 100644 --- a/src/modules/module-protocol-pulse/pulse-server.c +++ b/src/modules/module-protocol-pulse/pulse-server.c @@ -41,7 +41,12 @@ #include #include #include +#if HAVE_SYS_VFS_H #include +#endif +#if HAVE_SYS_MOUNT_H +#include +#endif #if HAVE_PWD_H #include #endif