aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYalei Wang <william.wangyalei@huawei.com>2018-10-25 17:45:27 +0800
committerYalei Wang <william.wangyalei@huawei.com>2018-10-26 20:42:20 +0800
commit929ec1aa113dda1986f26f8f314d4631114cb7b9 (patch)
tree990fb10a3cd42175a482cdf5932f185457ca42aa
parente29af930882238ad7837b2ab48c0be3103e4c575 (diff)
Fix: nginx use epoll
Change-Id: Ifebda6a5c95c5a94e9e4b0f12501ee97c6c4d5ea Signed-off-by: Yalei Wang <william.wangyalei@huawei.com>
-rw-r--r--stacks/lwip_stack/lwip_src/api/spl_api_msg.c2
-rw-r--r--thirdparty/apps/CMakeLists.txt25
2 files changed, 15 insertions, 12 deletions
diff --git a/stacks/lwip_stack/lwip_src/api/spl_api_msg.c b/stacks/lwip_stack/lwip_src/api/spl_api_msg.c
index 1c9bf92..6bff960 100644
--- a/stacks/lwip_stack/lwip_src/api/spl_api_msg.c
+++ b/stacks/lwip_stack/lwip_src/api/spl_api_msg.c
@@ -3316,5 +3316,7 @@ alloc_common_pcb (enum spl_netconn_type type)
common_pcb_init (cpcb);
cpcb->type = type;
+
+ res_alloc (&cpcb->res_chk);
return cpcb;
}
diff --git a/thirdparty/apps/CMakeLists.txt b/thirdparty/apps/CMakeLists.txt
index 2cf5240..8df3cb8 100644
--- a/thirdparty/apps/CMakeLists.txt
+++ b/thirdparty/apps/CMakeLists.txt
@@ -28,18 +28,19 @@ endif()
INCLUDE(ExternalProject)
ExternalProject_Add(
- NGINX
- URL ${NGINX_URL}
- DOWNLOAD_DIR ${NGINX_DOWNLOAD_DIR}
- DOWNLOAD_COMMAND ${NGINX_DOWNLOAD_CMD}
- BUILD_IN_SOURCE 1
- SOURCE_DIR ${NGINX_SRC}
- PATCH_COMMAND echo "./configure --with-ld-opt=\"-L${LIB_PATH_SHARED}/ -lnStackAPI -Wl,-rpath=${LIB_PATH_SHARED}\" --sbin-path=${NGINX_RELEASE}/nginx --conf-path=${NGINX_RELEASE}/nginx.conf --pid-path=${NGINX_RELEASE}/nginx.pid " > configure.sh
- COMMAND sed -i -e "48,49 s/^/#/" ${CMAKE_CURRENT_LIST_DIR}/nginx/nginx-1.12.2/auto/os/linux
- CONFIGURE_COMMAND sh configure.sh
- BUILD_COMMAND make
- INSTALL_COMMAND make install
- DEPENDS nStackAPI
+ NGINX
+ URL ${NGINX_URL}
+ DOWNLOAD_DIR ${NGINX_DOWNLOAD_DIR}
+ DOWNLOAD_COMMAND ${NGINX_DOWNLOAD_CMD}
+ BUILD_IN_SOURCE 1
+ SOURCE_DIR ${NGINX_SRC}
+ PATCH_COMMAND echo "./configure --with-ld-opt=\"-L${LIB_PATH_SHARED}/ -lnStackAPI -Wl,-rpath=${LIB_PATH_SHARED}\" --sbin-path=${NGINX_RELEASE}/nginx --conf-path=${NGINX_RELEASE}/nginx.conf --pid-path=${NGINX_RELEASE}/nginx.pid " > configure.sh
+ COMMAND sed -i -e "47 s/$/\"/" ${CMAKE_CURRENT_LIST_DIR}/nginx/nginx-1.14.0/auto/os/linux
+ COMMAND sed -i -e "48,49 s/^/#/" ${CMAKE_CURRENT_LIST_DIR}/nginx/nginx-1.12.2/auto/os/linux
+ CONFIGURE_COMMAND sh configure.sh
+ BUILD_COMMAND make
+ INSTALL_COMMAND make install
+ DEPENDS nStackAPI
)
set_target_properties(NGINX PROPERTIES EXCLUDE_FROM_ALL TRUE)