diff --git a/tests/securityselinuxhelper.c b/tests/securityselinuxhelper.c index 89cba3a471..d9968253ba 100644 --- a/tests/securityselinuxhelper.c +++ b/tests/securityselinuxhelper.c @@ -24,7 +24,9 @@ #include #include -#include +#if HAVE_LINUX_MAGIC_H +# include +#endif #include #include #include @@ -33,6 +35,10 @@ #include #include +#ifndef NFS_SUPER_MAGIC +# define NFS_SUPER_MAGIC 0x6969 +#endif + #include "virstring.h" static int (*realstatfs)(const char *path, struct statfs *buf);