i965/drm: Make libdrm_lists.h compile by defining typeof.

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>
This commit is contained in:
Kenneth Graunke 2017-03-21 15:55:29 -07:00
parent b97c7ef4c8
commit d614135e95

View file

@ -31,6 +31,10 @@
#include <stddef.h>
#ifndef typeof
#define typeof __typeof__
#endif
typedef struct _drmMMListHead
{
struct _drmMMListHead *prev;