mirror of https://github.com/Icinga/icinga2.git
Build fix for OpenBSD
This commit is contained in:
parent
6b92c6028b
commit
438210651f
|
@ -143,7 +143,7 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT CMAKE_SYSTEM_NAME MATCHES AIX)
|
if(NOT CMAKE_SYSTEM_NAME MATCHES AIX AND NOT CMAKE_SYSTEM_NAME MATCHES OpenBSD)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data")
|
||||||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data")
|
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--no-export-dynamic -Bsymbolic-functions -Wl,--dynamic-list-cpp-typeinfo -Wl,--dynamic-list-data")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -101,7 +101,7 @@ bool HttpRequest::Parse(StreamReadContext& src, bool may_wait)
|
||||||
} else if (m_State == HttpRequestBody) {
|
} else if (m_State == HttpRequestBody) {
|
||||||
if (Headers->Get("transfer-encoding") == "chunked") {
|
if (Headers->Get("transfer-encoding") == "chunked") {
|
||||||
if (!m_ChunkContext)
|
if (!m_ChunkContext)
|
||||||
m_ChunkContext = boost::make_shared<ChunkReadContext>(src);
|
m_ChunkContext = boost::make_shared<ChunkReadContext>(boost::ref(src));
|
||||||
|
|
||||||
char *data;
|
char *data;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
|
@ -183,7 +183,7 @@ bool HttpResponse::Parse(StreamReadContext& src, bool may_wait)
|
||||||
} else if (m_State == HttpResponseBody) {
|
} else if (m_State == HttpResponseBody) {
|
||||||
if (Headers->Get("transfer-encoding") == "chunked") {
|
if (Headers->Get("transfer-encoding") == "chunked") {
|
||||||
if (!m_ChunkContext)
|
if (!m_ChunkContext)
|
||||||
m_ChunkContext = boost::make_shared<ChunkReadContext>(src);
|
m_ChunkContext = boost::make_shared<ChunkReadContext>(boost::ref(src));
|
||||||
|
|
||||||
char *data;
|
char *data;
|
||||||
size_t size;
|
size_t size;
|
||||||
|
|
Loading…
Reference in New Issue