Define constants in LXC, not in LXC::Container

This commit is contained in:
Andre Nathan 2013-12-05 16:39:25 -02:00
parent 58bbb4cb41
commit d06cb87dee

View file

@ -1263,7 +1263,7 @@ Init_lxc(void)
rb_define_method(Container, "unfreeze", container_unfreeze, 0); rb_define_method(Container, "unfreeze", container_unfreeze, 0);
rb_define_method(Container, "wait", container_wait, -1); rb_define_method(Container, "wait", container_wait, -1);
#define LXC_CONTAINER_CONST(c) rb_define_const(Container, #c, LONG2NUM(c)) #define LXC_CONTAINER_CONST(c) rb_define_const(LXC, #c, LONG2NUM(c))
/* namespace flags */ /* namespace flags */
LXC_CONTAINER_CONST(CLONE_NEWUTS); LXC_CONTAINER_CONST(CLONE_NEWUTS);