summaryrefslogtreecommitdiff
path: root/usr/src/common/libdrm/patches/libdrm-lists-h.patch
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/common/libdrm/patches/libdrm-lists-h.patch')
-rw-r--r--usr/src/common/libdrm/patches/libdrm-lists-h.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/usr/src/common/libdrm/patches/libdrm-lists-h.patch b/usr/src/common/libdrm/patches/libdrm-lists-h.patch
new file mode 100644
index 0000000..a1d2691
--- /dev/null
+++ b/usr/src/common/libdrm/patches/libdrm-lists-h.patch
@@ -0,0 +1,28 @@
+diff ... libdrm-2.4.67/libdrm_lists.h
+--- libdrm-2.4.67/libdrm_lists.h.~1~ Thu Feb 14 10:14:08 2013
++++ libdrm-2.4.67/libdrm_lists.h Sat Oct 29 18:53:40 2016
+@@ -96,18 +96,18 @@
+ (__item) = (__temp), (__temp) = (__item)->prev)
+
+ #define DRMLISTFOREACHENTRY(__item, __list, __head) \
+- for ((__item) = DRMLISTENTRY(typeof(*__item), (__list)->next, __head); \
++ for ((__item) = DRMLISTENTRY(__typeof(*__item), (__list)->next, __head); \
+ &(__item)->__head != (__list); \
+- (__item) = DRMLISTENTRY(typeof(*__item), \
++ (__item) = DRMLISTENTRY(__typeof(*__item), \
+ (__item)->__head.next, __head))
+
+ #define DRMLISTFOREACHENTRYSAFE(__item, __temp, __list, __head) \
+- for ((__item) = DRMLISTENTRY(typeof(*__item), (__list)->next, __head), \
+- (__temp) = DRMLISTENTRY(typeof(*__item), \
++ for ((__item) = DRMLISTENTRY(__typeof(*__item), (__list)->next, __head), \
++ (__temp) = DRMLISTENTRY(__typeof(*__item), \
+ (__item)->__head.next, __head); \
+ &(__item)->__head != (__list); \
+ (__item) = (__temp), \
+- (__temp) = DRMLISTENTRY(typeof(*__item), \
++ (__temp) = DRMLISTENTRY(__typeof(*__item), \
+ (__temp)->__head.next, __head))
+
+ #define DRMLISTJOIN(__list, __join) if (!DRMLISTEMPTY(__list)) { \
+