From ba1a91cd1fb3b82b40da654c3ade1fecd41537e1 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Mon, 7 Oct 2013 11:45:00 +0200 Subject: [PATCH] tests: avoid compile failure on linux kernels older than 2.6.19 Signed-off-by: Giuseppe Scrivano --- tests/securityselinuxhelper.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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);