From 9006940685aaa73e379ed22e565bff7a38778e18 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 5 Aug 2024 01:51:57 +0000 Subject: automatic import of ceph --- 0011-src-test-rgw-amqp_mock.cc.patch | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 0011-src-test-rgw-amqp_mock.cc.patch (limited to '0011-src-test-rgw-amqp_mock.cc.patch') 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, -- cgit v1.2.3