X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fcommon%2Frunas.c;h=bee107951d8664e6f111ed5ff260574407f0c3a3;hp=497a96ad8028996e14939c0f2f1d0676db2bea75;hb=a440509044c2828bf6dbfb05e8d9d6d0277ce1a4;hpb=db7586006bc1a2b9057a2c108bf1e7d20fd6903f diff --git a/src/common/runas.c b/src/common/runas.c index 497a96ad8..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 "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;