From 7ae3f2d53d4a2d3df9e73851560fdf8e6390bc83 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Mon, 14 Jan 2013 13:45:55 -0500 Subject: [PATCH] securityselinuxhelper.c: Don't try to include xattr.h if not available Commit 907a39e7 missed adding the WITH_ATTR around #include resulting in a build failure: CC libsecurityselinuxhelper_la-securityselinuxhelper.lo securityselinuxhelper.c:27:24: fatal error: attr/xattr.h: No such file or directory compilation terminated. make[2]: *** [libsecurityselinuxhelper_la-securityselinuxhelper.lo] Error 1 make[2]: Leaving directory `/home/jferlan/libvirt.work/tests' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/jferlan/libvirt.work' make: *** [all] Error 2 --- tests/securityselinuxhelper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/securityselinuxhelper.c b/tests/securityselinuxhelper.c index abe4d7cc49..647b84156c 100644 --- a/tests/securityselinuxhelper.c +++ b/tests/securityselinuxhelper.c @@ -24,7 +24,9 @@ #include #include #include -#include +#if WITH_ATTR +# include +#endif /*