The rdma-core library uses the CCAN linked list implementation, which is incompatible with sys/queue.h (and defines symbols with the same name). To be compatible with rdma-core, we need to switch ourselves to also use the same list implementation, or make sure that any compilation unit that uses sys/queue.h is completely isolated from any compilation unit that uses CCAN lists.
The rdma-core library uses the CCAN linked list implementation, which is incompatible with sys/queue.h (and defines symbols with the same name). To be compatible with rdma-core, we need to switch ourselves to also use the same list implementation, or make sure that any compilation unit that uses sys/queue.h is completely isolated from any compilation unit that uses CCAN lists.