X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-context-net-ns.c;h=ad6d6d2af24a32296e06e5d67bcdaa6f18e082f1;hb=4e4fb933c8a6b85ac3d5a60a417726e20e2cc695;hp=4bc046db1bf494363dc5dbc41f502e88ebad4808;hpb=93e5bcec1d8d550a1983bbc013248dbd83573cc7;p=lttng-modules.git diff --git a/src/lttng-context-net-ns.c b/src/lttng-context-net-ns.c index 4bc046db..ad6d6d2a 100644 --- a/src/lttng-context-net-ns.c +++ b/src/lttng-context-net-ns.c @@ -9,6 +9,8 @@ * */ +#ifdef CONFIG_NET_NS + #include #include #include @@ -20,9 +22,6 @@ #include #include -#if defined(CONFIG_NET_NS) && \ - (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,8,0)) - static size_t net_ns_get_size(void *priv, struct lttng_kernel_probe_ctx *probe_ctx, size_t offset) {