From: Kenneth Graunke Date: Tue, 21 Mar 2017 22:55:29 +0000 (-0700) Subject: i965/drm: Make libdrm_lists.h compile by defining typeof. X-Git-Tag: upstream/17.1.0~363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d614135e95e8c4daf34e9c2a175baefd5f02f7e6;p=platform%2Fupstream%2Fmesa.git 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 --- diff --git a/src/mesa/drivers/dri/i965/libdrm_lists.h b/src/mesa/drivers/dri/i965/libdrm_lists.h index 8926d8d..f6f46a2 100644 --- a/src/mesa/drivers/dri/i965/libdrm_lists.h +++ b/src/mesa/drivers/dri/i965/libdrm_lists.h @@ -31,6 +31,10 @@ #include +#ifndef typeof +#define typeof __typeof__ +#endif + typedef struct _drmMMListHead { struct _drmMMListHead *prev;