X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Frunas.c;h=bee107951d8664e6f111ed5ff260574407f0c3a3;hp=cc503412689f55f48524ef515d608a9f1a4cdf4b;hb=a440509044c2828bf6dbfb05e8d9d6d0277ce1a4;hpb=10a8a2237343699e3923d87e24dbf2d7fe225377 diff --git a/src/common/runas.c b/src/common/runas.c index cc5034126..bee107951 100644 --- a/src/common/runas.c +++ b/src/common/runas.c @@ -28,14 +28,20 @@ #include #include #include -#include +#include -#include +#include +#include +#include #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;