From: John Ferlan Date: Mon, 14 Jan 2013 18:45:55 +0000 (-0500) Subject: securityselinuxhelper.c: Don't try to include xattr.h if not available X-Git-Tag: v1.0.2-rc1~169 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ae3f2d53d4a2d3df9e73851560fdf8e6390bc83;p=thirdparty%2Flibvirt.git 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 --- 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 /*