Index: src/librabbitmq/amqp.h --- src/librabbitmq/amqp.h.orig 2016-03-15 21:19:54.000000000 +0100 +++ src/librabbitmq/amqp.h 2018-01-26 10:43:46.667270000 +0100 @@ -5,6 +5,9 @@ extern "C" { #endif +#include +#include + typedef int amqp_boolean_t; typedef uint32_t amqp_method_number_t; typedef uint32_t amqp_flags_t; Index: src/pg_amqp.c --- src/pg_amqp.c.orig 2016-03-15 21:19:54.000000000 +0100 +++ src/pg_amqp.c 2018-01-26 10:42:41.149323000 +0100 @@ -129,6 +129,10 @@ /* nothin' */ return; break; + default: + /* nothin' */ + return; + break; } } @@ -137,7 +141,7 @@ } static struct brokerstate * -local_amqp_get_a_bs(broker_id) { +local_amqp_get_a_bs(int broker_id) { struct brokerstate *bs; for(bs = HEAD_BS; bs; bs = bs->next) { if(bs->broker_id == broker_id) return bs; @@ -149,7 +153,7 @@ return bs; } static struct brokerstate * -local_amqp_get_bs(broker_id) { +local_amqp_get_bs(int broker_id) { char sql[1024]; char host_copy[300] = ""; int tries = 0; @@ -236,7 +240,7 @@ return bs; } static void -local_amqp_disconnect(broker_id) { +local_amqp_disconnect(int broker_id) { struct brokerstate *bs = local_amqp_get_a_bs(broker_id); local_amqp_disconnect_bs(bs); }