vzctl: supress a compilation warning

The following compilation warning occurs:
  In file included from cap.c:28:
  ../../include/cap.h:26:1: warning: "CAP_TO_MASK" redefined
  In file included from cap.c:25:
  /usr/include/linux/capability.h:334:1: warning: this is the location of the previous definition

Indeed, CAP_TO_MASK is also defined in linux/capability.h. We can not rely
on that though so we #undef it and use our own version.

While at it, improve CAP_TO_MASK (by borrowing the one we just #undef'ed).

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed