Fix rest of the code to support compat layer
[lttng-tools.git] / src / common / runas.c
index cc503412689f55f48524ef515d608a9f1a4cdf4b..bee107951d8664e6f111ed5ff260574407f0c3a3 100644 (file)
 #include <unistd.h>
 #include <fcntl.h>
 #include <sched.h>
-#include <sys/mman.h>
+#include <sys/signal.h>
 
-#include <common/lttngerr.h>
+#include <common/error.h>
+#include <common/compat/mman.h>
+#include <common/compat/clone.h>
 
 #include "runas.h"
 
 #define RUNAS_CHILD_STACK_SIZE 10485760
 
+#ifndef MAP_STACK
+#define MAP_STACK              0
+#endif
+
 struct run_as_data {
        int (*cmd)(void *data);
        void *data;
This page took 0.023931 seconds and 4 git commands to generate.