From 0d5194c17c694a9b34c9056c5dc2b63eb0697d84 Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Tue, 13 Jan 2015 14:33:08 +0100 Subject: [PATCH] queue: check if list_move is already defined --- src/queue.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/queue.h b/src/queue.h index 74d4c84b..ff221988 100644 --- a/src/queue.h +++ b/src/queue.h @@ -86,12 +86,14 @@ * Some extra functions for LIST manipulation */ +#ifndef LIST_MOVE #define LIST_MOVE(newhead, oldhead, field) do { \ if((oldhead)->lh_first) { \ (oldhead)->lh_first->field.le_prev = &(newhead)->lh_first; \ } \ (newhead)->lh_first = (oldhead)->lh_first; \ -} while (0) +} while (0) +#endif #define LIST_INSERT_SORTED(head, elm, field, cmpfunc) do { \ if(LIST_EMPTY(head)) { \