i965/drm: Make libdrm_lists.h compile by defining typeof.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 21 Mar 2017 22:55:29 +0000 (15:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Apr 2017 21:31:03 +0000 (14:31 -0700)
typeof doesn't seem to exist, so this won't compile (but we don't yet
try).  Define it to __typeof__.  This code is going to die soon anyway.

Acked-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/drivers/dri/i965/libdrm_lists.h

index 8926d8d1a67e3f38402819892c4e63c28a5e1f14..f6f46a2b5cddd47517d6c4b57d2e7b0762f7f989 100644 (file)
 
 #include <stddef.h>
 
+#ifndef typeof
+#define typeof __typeof__
+#endif
+
 typedef struct _drmMMListHead
 {
     struct _drmMMListHead *prev;