Commit c7dd2f9a authored by Max Lv's avatar Max Lv

fix shadowsocks-libev

parent d01295b3
...@@ -34,17 +34,17 @@ LOCAL_CFLAGS := -Wall -O2 -I$(LOCAL_PATH)/pdnsd ...@@ -34,17 +34,17 @@ LOCAL_CFLAGS := -Wall -O2 -I$(LOCAL_PATH)/pdnsd
include $(BUILD_EXECUTABLE) include $(BUILD_EXECUTABLE)
#include $(CLEAR_VARS) include $(CLEAR_VARS)
#LOCAL_MODULE := shadowsocks LOCAL_MODULE := shadowsocks
#LOCAL_SRC_FILES := shadowsocks/local.c shadowsocks/encrypt.c LOCAL_SRC_FILES := shadowsocks/local.c shadowsocks/encrypt.c
#LOCAL_CFLAGS := -Wall -O2 -I$(LOCAL_PATH)/libev/ -I$(LOCAL_PATH)/openssl/include -std=c99 LOCAL_CFLAGS := -Wall -O2 -I$(LOCAL_PATH)/libev/ -I$(LOCAL_PATH)/openssl/include -std=c99
#LOCAL_STATIC_LIBRARIES := libev libcrypto LOCAL_STATIC_LIBRARIES := libev libcrypto
#LOCAL_LDLIBS := -llog LOCAL_LDLIBS := -llog
#include $(BUILD_EXECUTABLE) include $(BUILD_EXECUTABLE)
include $(CLEAR_VARS) include $(CLEAR_VARS)
...@@ -68,9 +68,9 @@ LOCAL_LDLIBS := -ldl ...@@ -68,9 +68,9 @@ LOCAL_LDLIBS := -ldl
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)
#subdirs := $(addprefix $(LOCAL_PATH)/openssl/,$(addsuffix /Android.mk, \ subdirs := $(addprefix $(LOCAL_PATH)/openssl/,$(addsuffix /Android.mk, \
#crypto \ crypto \
#)) ))
#include $(subdirs) include $(subdirs)
This diff is collapsed.
...@@ -13,6 +13,7 @@ struct listen_ctx { ...@@ -13,6 +13,7 @@ struct listen_ctx {
struct server { struct server {
int fd; int fd;
char buf[BUF_SIZE]; // server send from, remote recv into char buf[BUF_SIZE]; // server send from, remote recv into
char stage;
int buf_len; int buf_len;
struct server_ctx *recv_ctx; struct server_ctx *recv_ctx;
struct server_ctx *send_ctx; struct server_ctx *send_ctx;
......
No preview for this file type
No preview for this file type
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment