diff options
author | Kenneth Graunke <[email protected]> | 2017-03-21 15:55:29 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-04-10 14:31:03 -0700 |
commit | d614135e95e8c4daf34e9c2a175baefd5f02f7e6 (patch) | |
tree | fe756d3bd682c096e9b55c24fde4563e553674fa /src/mesa | |
parent | b97c7ef4c81b2516a94f73123ca61ec07def5668 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/libdrm_lists.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <stddef.h> +#ifndef typeof +#define typeof __typeof__ +#endif + typedef struct _drmMMListHead { struct _drmMMListHead *prev; |