X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Flogind-acl.h;fp=src%2Flogind-acl.h;h=72740f5b9571a3bcabf9c965c925e77c1e984eeb;hb=2fb1aedaf2493d9598693c123d5e9c168ca1b3c1;hp=9c88a806441662b4e6ba3f7513e4181af9adc22a;hpb=4e7f8bc81c6422c59ab644fcea28b6f32be416e9;p=elogind.git diff --git a/src/logind-acl.h b/src/logind-acl.h index 9c88a8064..72740f5b9 100644 --- a/src/logind-acl.h +++ b/src/logind-acl.h @@ -26,6 +26,8 @@ #include #include +#ifdef HAVE_ACL + int devnode_acl(const char *path, bool flush, bool del, uid_t old_uid, @@ -36,5 +38,23 @@ int devnode_acl_all(struct udev *udev, bool flush, bool del, uid_t old_uid, bool add, uid_t new_uid); +#else + +static inline int devnode_acl(const char *path, + bool flush, + bool del, uid_t old_uid, + bool add, uid_t new_uid) { + return 0; +} + +static inline int devnode_acl_all(struct udev *udev, + const char *seat, + bool flush, + bool del, uid_t old_uid, + bool add, uid_t new_uid) { + return 0; +} + +#endif #endif