summaryrefslogtreecommitdiff
path: root/0011-src-test-rgw-amqp_mock.cc.patch
diff options
context:
space:
mode:
Diffstat (limited to '0011-src-test-rgw-amqp_mock.cc.patch')
-rw-r--r--0011-src-test-rgw-amqp_mock.cc.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/0011-src-test-rgw-amqp_mock.cc.patch b/0011-src-test-rgw-amqp_mock.cc.patch
new file mode 100644
index 0000000..c0c5179
--- /dev/null
+++ b/0011-src-test-rgw-amqp_mock.cc.patch
@@ -0,0 +1,23 @@
+--- a/src/test/rgw/amqp_mock.cc
++++ b/src/test/rgw/amqp_mock.cc
+@@ -291,7 +291,11 @@ amqp_confirm_select_ok_t* amqp_confirm_select(amqp_connection_state_t state, amq
+ return state->confirm;
+ }
+
+-int amqp_simple_wait_frame_noblock(amqp_connection_state_t state, amqp_frame_t *decoded_frame, struct timeval* tv) {
++extern "C" {
++
++int amqp_simple_wait_frame_noblock(amqp_connection_state_t state,
++ amqp_frame_t *decoded_frame,
++ const struct timeval* tv) {
+ if (state->socket && state->socket->open_called &&
+ state->login_called && state->channel1 && state->channel2 && state->exchange &&
+ state->queue && state->consume && state->confirm && !FAIL_NEXT_READ) {
+@@ -345,6 +349,7 @@ int amqp_simple_wait_frame_noblock(amqp_connection_state_t state, amqp_frame_t *
+ }
+ return AMQP_STATUS_CONNECTION_CLOSED;
+ }
++} // extern "C"
+
+ amqp_basic_consume_ok_t* amqp_basic_consume(
+ amqp_connection_state_t state, amqp_channel_t channel, amqp_bytes_t queue,