aboutsummaryrefslogtreecommitdiffstats
path: root/main/tvheadend/sys-queue.patch
blob: 0cec28c7bcc455f643b84667a84b5821d66fc0ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--- ./src/queue.h.orig
+++ ./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) 
+#endif
 
 #define LIST_INSERT_SORTED(head, elm, field, cmpfunc) do {	\
         if(LIST_EMPTY(head)) {					\