]> granicus.if.org Git - icinga2/commitdiff
Build fix for OpenBSD
authorGunnar Beutner <gunnar@beutner.name>
Tue, 20 Oct 2015 20:54:58 +0000 (22:54 +0200)
committerGunnar Beutner <gunnar@beutner.name>
Tue, 20 Oct 2015 20:54:58 +0000 (22:54 +0200)
CMakeLists.txt
lib/remote/httprequest.cpp
lib/remote/httpresponse.cpp

index 7766cb05c2a8413b2fff20b3f3d50c82cb35a5eb..3b7865799cdea44316029f5a499f47082fc95988 100644 (file)
@@ -143,7 +143,7 @@ if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
   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_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()
index d09a0166d5f9732da8902fe2b82f3f3459da12fc..d9eacb781a9b12377e4e326e61b2d0745383f24c 100644 (file)
@@ -101,7 +101,7 @@ bool HttpRequest::Parse(StreamReadContext& src, bool may_wait)
        } else if (m_State == HttpRequestBody) {
                if (Headers->Get("transfer-encoding") == "chunked") {
                        if (!m_ChunkContext)
-                               m_ChunkContext = boost::make_shared<ChunkReadContext>(src);
+                               m_ChunkContext = boost::make_shared<ChunkReadContext>(boost::ref(src));
 
                        char *data;
                        size_t size;
index c5c9c722a328f134140d58e0a76df75a5f9db3cb..c10cc0e6a9f261934ebffe15053673d1b183e8bb 100644 (file)
@@ -183,7 +183,7 @@ bool HttpResponse::Parse(StreamReadContext& src, bool may_wait)
        } else if (m_State == HttpResponseBody) {
                if (Headers->Get("transfer-encoding") == "chunked") {
                        if (!m_ChunkContext)
-                               m_ChunkContext = boost::make_shared<ChunkReadContext>(src);
+                               m_ChunkContext = boost::make_shared<ChunkReadContext>(boost::ref(src));
 
                        char *data;
                        size_t size;