PR_CAPBSET_READ isn't defined in bionic, so define it if it's not.

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
---
 src/lxc/caps.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lxc/caps.c b/src/lxc/caps.c
index 53c552b..7e64a38 100644
--- a/src/lxc/caps.c
+++ b/src/lxc/caps.c
@@ -37,6 +37,10 @@ lxc_log_define(lxc_caps, lxc);
 #if HAVE_SYS_CAPABILITY_H
 #include <sys/capability.h>
 
+#ifndef PR_CAPBSET_READ
+#define PR_CAPBSET_READ 23
+#endif
+
 int lxc_caps_reset(void)
 {
        cap_t cap = cap_init();
-- 
1.8.0


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Lxc-devel mailing list
Lxc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel

Reply via email to