X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=wrapper%2Fnamespace.h;h=0e7833e1f1e8c528d2ae83a121fae564530c0378;hb=1965e6b461720f6e43ff77d71f1ea086d3da88d9;hp=36dbf4c0475081812230a361b7e1090678d506bd;hpb=a6cf40a4491954d6f81052f8bbce757f73727f16;p=lttng-modules.git diff --git a/wrapper/namespace.h b/wrapper/namespace.h index 36dbf4c0..0e7833e1 100644 --- a/wrapper/namespace.h +++ b/wrapper/namespace.h @@ -18,4 +18,10 @@ #define lttng_ns_inum proc_inum #endif +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)) +#define lttng_user_ns_parent parent +#else +#define lttng_user_ns_parent creator->user_ns +#endif + #endif /* _LTTNG_WRAPPER_NAMESPACE_H */