summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRichard Yao <ryao@gentoo.org>2012-11-17 01:40:26 -0500
committerRichard Yao <ryao@cs.stonybrook.edu>2012-11-17 02:37:53 -0500
commitc6aceba1934ddb754bf63c7b1a867470a7f75727 (patch)
tree0e481a7f1ef4ba83130ea3128f2b1b0ba213c820 /src
parent98520888b8d267d80c66da9012bd3fe2b34f5004 (diff)
Add missing HAVE_ACL preprocessor directives
This fixes a build failure with --disable-acl Signed-off-by: Richard Yao <ryao@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/udev/logind-acl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/udev/logind-acl.c b/src/udev/logind-acl.c
index cb045a9928..a2b31a3b80 100644
--- a/src/udev/logind-acl.c
+++ b/src/udev/logind-acl.c
@@ -19,6 +19,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#ifdef HAVE_ACL
+
#include <assert.h>
#include <sys/acl.h>
#include <acl/libacl.h>
@@ -246,3 +248,5 @@ finish:
return r;
}
+
+#endif