]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix Rock store test build error with GCC 4.1.
authorDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 23 Aug 2011 11:58:13 +0000 (15:58 +0400)
committerDmitry Kurochkin <dmitry.kurochkin@measurement-factory.com>
Tue, 23 Aug 2011 11:58:13 +0000 (15:58 +0400)
Added stub for Ipc::TypedMsgHdr and link with it instead of the whole libipc.

src/Makefile.am
src/tests/stub_ipc_TypedMsgHdr.cc [new file with mode: 0644]

index e4f33696714271ea901988e74f424c8c5e9ec736..f1be4481a62ef1cad73fef04398c2d08e2b05f4b 100644 (file)
@@ -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 (file)
index 0000000..0e00b7a
--- /dev/null
@@ -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