From d614135e95e8c4daf34e9c2a175baefd5f02f7e6 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 21 Mar 2017 15:55:29 -0700 Subject: [PATCH] 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 --- src/mesa/drivers/dri/i965/libdrm_lists.h | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2