From 59f0699ce1458cc9dce62b8b66638dde9a6d9764 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Tue, 13 Jan 2015 10:23:32 +0800 Subject: [PATCH] fix #218 --- src/common.h | 4 ++++ src/local.c | 2 +- src/udprelay.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common.h b/src/common.h index f224cced..1894568f 100644 --- a/src/common.h +++ b/src/common.h @@ -37,6 +37,10 @@ #endif +#ifndef SOL_TCP +#define SOL_TCP IPPROTO_TCP +#endif + int init_udprelay(const char *server_host, const char *server_port, #ifdef UDPRELAY_LOCAL const struct sockaddr *remote_addr, const int remote_addr_len, diff --git a/src/local.c b/src/local.c index 21069c3c..fc963cab 100644 --- a/src/local.c +++ b/src/local.c @@ -63,9 +63,9 @@ #include "netutils.h" #include "utils.h" -#include "local.h" #include "socks5.h" #include "acl.h" +#include "local.h" #ifndef EAGAIN #define EAGAIN EWOULDBLOCK diff --git a/src/udprelay.c b/src/udprelay.c index bd3d0685..5f49656c 100644 --- a/src/udprelay.c +++ b/src/udprelay.c @@ -57,8 +57,8 @@ #include #include "utils.h" -#include "udprelay.h" #include "cache.h" +#include "udprelay.h" #ifdef UDPRELAY_REMOTE #define MAX_UDP_CONN_NUM 1024