added the fc3 rpmlist.d directory + content
[util-vserver.git] / util-vserver / src / reducecap.c
index 824e7fd..1dca269 100644 (file)
 #include <wrappers.h>
 
 
-  // dirty hack...
-#define  __u32 uint32_t
-#define  __user
-#include "linuxcaps.h"
-#undef   __user
-#undef   __u32
+#undef _POSIX_SOURCE
+#include "capability-compat.h"
+
 
 #define CMD_HELP       0x1000
 #define CMD_VERSION    0x1001
@@ -143,9 +140,6 @@ CMDLINE_OPTIONS[] = {
 
 int wrapper_exit_code  = 255;
 
-extern int capget (struct __user_cap_header_struct *, struct __user_cap_data_struct *);
-extern int capset (struct __user_cap_header_struct *, struct __user_cap_data_struct *);
-
 static void
 showHelp(int fd, char const *cmd, int res)
 {