From: Dmitry Kurochkin Date: Tue, 23 Aug 2011 11:58:13 +0000 (+0400) Subject: Fix Rock store test build error with GCC 4.1. X-Git-Tag: take08~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3506d43a1998f603ee054dc88b0d5bb5fb86223;p=thirdparty%2Fsquid.git Fix Rock store test build error with GCC 4.1. Added stub for Ipc::TypedMsgHdr and link with it instead of the whole libipc. --- diff --git a/src/Makefile.am b/src/Makefile.am index e4f3369671..f1be4481a6 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -2662,6 +2662,7 @@ tests_testRock_SOURCES = \ tests/stub_http.cc \ tests/stub_HttpReply.cc \ tests/stub_HttpRequest.cc \ + tests/stub_ipc_TypedMsgHdr.cc \ tests/stub_libcomm.cc \ tests/stub_MemStore.cc \ tests/stub_mime.cc \ @@ -2693,7 +2694,6 @@ tests_testRock_LDADD = \ acl/libstate.la \ eui/libeui.la \ mgr/libmgr.la \ - ipc/libipc.la \ base/libbase.la \ $(top_builddir)/lib/libmisccontainers.la \ $(top_builddir)/lib/libmiscencoding.la \ diff --git a/src/tests/stub_ipc_TypedMsgHdr.cc b/src/tests/stub_ipc_TypedMsgHdr.cc new file mode 100644 index 0000000000..0e00b7a8c0 --- /dev/null +++ b/src/tests/stub_ipc_TypedMsgHdr.cc @@ -0,0 +1,14 @@ +#include "config.h" + +#define STUB_API "TypedMsgHdr.cc" +#include "tests/STUB.h" + +#include "ipc/TypedMsgHdr.h" + +Ipc::TypedMsgHdr::TypedMsgHdr() STUB +void Ipc::TypedMsgHdr::checkType(int) const STUB +void Ipc::TypedMsgHdr::setType(int) STUB +void Ipc::TypedMsgHdr::getFixed(void*, size_t) const STUB +void Ipc::TypedMsgHdr::putFixed(void const*, size_t) STUB +void Ipc::TypedMsgHdr::getString(String&) const STUB +void Ipc::TypedMsgHdr::putString(String const&) STUB