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-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d614135e95e8c4daf34e9c2a175baefd5f02f7e6;p=mesa.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 8926d8d1a67..f6f46a2b5cd 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;