projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix rest of the code to support compat layer
[lttng-tools.git]
/
src
/
common
/
runas.c
diff --git
a/src/common/runas.c
b/src/common/runas.c
index 497a96ad8028996e14939c0f2f1d0676db2bea75..bee107951d8664e6f111ed5ff260574407f0c3a3 100644
(file)
--- a/
src/common/runas.c
+++ b/
src/common/runas.c
@@
-28,14
+28,20
@@
#include <unistd.h>
#include <fcntl.h>
#include <sched.h>
#include <unistd.h>
#include <fcntl.h>
#include <sched.h>
-#include <sys/
mman
.h>
+#include <sys/
signal
.h>
#include <common/error.h>
#include <common/error.h>
+#include <common/compat/mman.h>
+#include <common/compat/clone.h>
#include "runas.h"
#define RUNAS_CHILD_STACK_SIZE 10485760
#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;
struct run_as_data {
int (*cmd)(void *data);
void *data;
This page took
0.024802 seconds
and
4
git commands to generate.