diff --git a/src/lxc/conf.c b/src/lxc/conf.c
--- a/src/lxc/conf.c
+++ b/src/lxc/conf.c
@@ -119,6 +119,14 @@
 #endif
 #endif
 
+#ifndef CAP_SETUID
+#define CAP_SETUID 7
+#endif
+
+#ifndef CAP_SETGID
+#define CAP_SETGID 6
+#endif
+
 #ifndef PR_CAPBSET_DROP
 #define PR_CAPBSET_DROP 24
 #endif
