提交 da29531c authored 作者: Seven Du's avatar Seven Du

cleanup code, less dependency

上级 878c232b
...@@ -65,7 +65,7 @@ ws.o ...@@ -65,7 +65,7 @@ ws.o
LOCAL_CFLAGS = -w -I$(XMLRPC_DIR)/lib/expat/xmlparse -I$(XMLRPC_DIR)/lib/expat/xmltok -I$(XMLRPC_DIR) -I$(XMLRPC_DIR)/include LOCAL_CFLAGS = -w -I$(XMLRPC_DIR)/lib/expat/xmlparse -I$(XMLRPC_DIR)/lib/expat/xmltok -I$(XMLRPC_DIR) -I$(XMLRPC_DIR)/include
LOCAL_CFLAGS+= -I$(XMLRPC_DIR)/lib/abyss/src -I$(XMLRPC_DIR)/lib/util/include -D_THREAD -D__EXTENSIONS__ LOCAL_CFLAGS+= -I$(XMLRPC_DIR)/lib/abyss/src -I$(XMLRPC_DIR)/lib/util/include -D_THREAD -D__EXTENSIONS__
LOCAL_CFLAGS+= -I. -I../../../../libs/sofia-sip/libsofia-sip-ua/su LOCAL_CFLAGS+= -I.
include $(BASE)/build/modmake.rules include $(BASE)/build/modmake.rules
......
#include "ws.h" #include "ws.h"
#include <pthread.h>
#ifndef _MSC_VER #ifndef _MSC_VER
#include <fcntl.h> #include <fcntl.h>
......
...@@ -11,24 +11,24 @@ ...@@ -11,24 +11,24 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <sys/wait.h> #include <sys/wait.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <unistd.h>
#else #else
#pragma warning(disable:4996) #pragma warning(disable:4996)
#define snprintf _snprintf
#endif #endif
#include <string.h> #include <string.h>
#include <unistd.h>
#include <string.h> #include <string.h>
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
//#include "sha1.h"
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <sofia-sip/su_types.h>
#include <../lib/abyss/src/session.h> #include <../lib/abyss/src/session.h>
#include <../lib/abyss/src/conn.h> #include <../lib/abyss/src/conn.h>
typedef TSession ws_tsession_t; typedef TSession ws_tsession_t;
typedef int issize_t;
struct globals_s { struct globals_s {
const SSL_METHOD *ssl_method; const SSL_METHOD *ssl_method;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论