net: move compat check

This commit is contained in:
Thomas Schoebel-Theuer 2019-02-20 11:39:28 +01:00 committed by Thomas Schoebel-Theuer
parent 764399d262
commit a8766f3016
2 changed files with 6 additions and 9 deletions

View File

@ -103,9 +103,15 @@ extern int _compat_unlink(
#endif
/* for networking */
#include <net/sock.h>
#ifndef TCP_MAX_REORDERING
#define __HAS_IOV_ITER
#endif
/* see eeb1bd5c40edb0e2fd925c8535e2fdebdbc5cef2 */
#ifdef sk_net_refcnt
#define __HAS_STRUCT_NET
#endif
#endif /* _MARS_COMPAT */

View File

@ -45,15 +45,6 @@
////////////////////////////////////////////////////////////////////
// provisionary version detection
#ifdef sk_net_refcnt
/* see eeb1bd5c40edb0e2fd925c8535e2fdebdbc5cef2 */
#define __HAS_STRUCT_NET
#endif
////////////////////////////////////////////////////////////////////
#define USE_BUFFERING
/* Low-level network traffic