summaryrefslogtreecommitdiff
path: root/usr/src/common/libdrm/patches/util-double-list-h.patch
blob: 91677ad28ef92221cda0c58cb21b7d649dcc776e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff ... libdrm-2.4.71/util_double_list.h
--- libdrm-2.4.71/util_double_list.h.~1~	Tue Aug  2 16:22:45 2016
+++ libdrm-2.4.71/util_double_list.h	Sat Nov 19 10:37:40 2016
@@ -110,7 +110,7 @@
 #ifndef container_of
 #define container_of(ptr, sample, member)				\
     (void *)((char *)(ptr)						\
-	     - ((char *)&((typeof(sample))0)->member))
+	     - ((char *)&((__typeof(sample))0)->member))
 #endif
 
 #define LIST_FOR_EACH_ENTRY(pos, head, member)				\