#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
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)
{
#include <dirent.h>
#include <strings.h>
-#include <sys/capability.h>
-
-
#define ENSC_WRAPPERS_FCNTL 1
#define ENSC_WRAPPERS_IO 1
#define ENSC_WRAPPERS_UNISTD 1
#define ENSC_WRAPPERS_VSERVER 1
#include <wrappers.h>
+#undef _POSIX_SOURCE
+#include "capability-compat.h"
+
typedef enum { tgNONE,tgCONTEXT, tgID, tgRUNNING,
tgVDIR, tgNAME, tgCFGDIR, tgAPPDIR,
tgAPIVER, tgPXID,