From ec6edb5f247f7e30240673966475d07b0d951c9e Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Thu, 10 Aug 2017 14:06:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3posix=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E4=B8=8B=E7=BC=96=E8=AF=91=E5=A4=B1=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 2 +- src/Http/HttpSession.cpp | 5 +++++ src/Shell/CMD.h | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f10e685e..20f237c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ endif(MP4V2_FOUND) #查找x264是否安装 find_package(X264 QUIET) if(X264_FOUND) -message(STATUS "找到x264库:\"${X264_INCLUDE_DIR}\",ENABLE_X264宏已打开") +message(STATUS "找到x264库:\"${X264_INCLUDE_DIRS}\",ENABLE_X264宏已打开") include_directories(${X264_INCLUDE_DIRS}) add_definitions(-DENABLE_X264) list(APPEND LINK_LIB_LIST ${X264_LIBRARIES}) diff --git a/src/Http/HttpSession.cpp b/src/Http/HttpSession.cpp index 4d3b0eb8..4bf924a7 100644 --- a/src/Http/HttpSession.cpp +++ b/src/Http/HttpSession.cpp @@ -5,6 +5,10 @@ * Author: xzl */ +#if !defined(_WIN32) +#include +#endif //!defined(_WIN32) + #include #include #include @@ -19,6 +23,7 @@ #include "Util/mini.h" #include "Util/NoticeCenter.h" + using namespace ZL::Util; namespace ZL { diff --git a/src/Shell/CMD.h b/src/Shell/CMD.h index bab72949..67f1722e 100644 --- a/src/Shell/CMD.h +++ b/src/Shell/CMD.h @@ -8,6 +8,10 @@ #ifndef SRC_SHELL_CMD_H_ #define SRC_SHELL_CMD_H_ +#if !defined(_WIN32) +#include +#endif //!defined(_WIN32) + #include #include #include