]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Add some define to compile on rhel5u1
authorMichel Normand <normand@fr.ibm.com>
Thu, 21 Jan 2010 16:21:33 +0000 (17:21 +0100)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Fri, 22 Jan 2010 10:21:46 +0000 (11:21 +0100)
the last patch commit 81810dd120291b78daf7c6833e6fcbca0289aad5
make lxc to not compile anymore on rhel5u1

Signed-off-by: Michel Normand <normand@fr.ibm.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/conf.c

index 3f75527d8869edf789cf354384992d5e9878899d..1a9f5df61fccd0c12c771638196a15d5931b684f 100644 (file)
@@ -67,6 +67,22 @@ lxc_log_define(lxc_conf, lxc);
 #define MS_REC 16384
 #endif
 
+#ifndef CAP_SETFCAP
+#define CAP_SETFCAP 31
+#endif
+
+#ifndef CAP_MAC_OVERRIDE
+#define CAP_MAC_OVERRIDE 32
+#endif
+
+#ifndef CAP_MAC_ADMIN
+#define CAP_MAC_ADMIN 33
+#endif
+
+#ifndef PR_CAPBSET_DROP
+#define PR_CAPBSET_DROP 24
+#endif
+
 extern int pivot_root(const char * new_root, const char * put_old);
 
 typedef int (*instanciate_cb)(struct lxc_netdev *);