From 764399d2628a50fd9e602d6ab0dc80cba712db52 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Wed, 20 Feb 2019 11:38:07 +0100 Subject: [PATCH] net: move compat check --- kernel/compat.h | 6 ++++++ kernel/mars_net.c | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/kernel/compat.h b/kernel/compat.h index 6df96234..12be4a19 100644 --- a/kernel/compat.h +++ b/kernel/compat.h @@ -102,4 +102,10 @@ extern int _compat_unlink( #define HAS_NEW_BIO_OP #endif +/* for networking */ + +#ifndef TCP_MAX_REORDERING +#define __HAS_IOV_ITER +#endif + #endif /* _MARS_COMPAT */ diff --git a/kernel/mars_net.c b/kernel/mars_net.c index 193a45d0..3b5cff30 100644 --- a/kernel/mars_net.c +++ b/kernel/mars_net.c @@ -47,10 +47,6 @@ // provisionary version detection -#ifndef TCP_MAX_REORDERING -#define __HAS_IOV_ITER -#endif - #ifdef sk_net_refcnt /* see eeb1bd5c40edb0e2fd925c8535e2fdebdbc5cef2 */ #define __HAS_STRUCT_NET