summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <[email protected]>2019-02-25 20:06:47 +0000
committerEric Engestrom <[email protected]>2019-04-30 13:50:25 +0100
commitda84d071a6f4c33015525c168d22c0f121025010 (patch)
treeb6e500e94a7845d5f8de5df432da10222f142d69
parent1c1efa4ca9a190e21ea555c9b02f69af194dce51 (diff)
winsys/svga/drm: Include sys/types.h
vmw_screen.h uses dev_t which is defines in sys/types.h this header is required to be included for getting dev_t definition. This issue happens on musl C library, it is hidden on glibc since sys/types.h is included through another system headers Reviewed-by: Eric Engestrom <[email protected]>
-rw-r--r--src/gallium/winsys/svga/drm/vmw_screen.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/svga/drm/vmw_screen.h b/src/gallium/winsys/svga/drm/vmw_screen.h
index a87c087d9c5..cb34fec48e7 100644
--- a/src/gallium/winsys/svga/drm/vmw_screen.h
+++ b/src/gallium/winsys/svga/drm/vmw_screen.h
@@ -41,6 +41,7 @@
#include "svga_winsys.h"
#include "pipebuffer/pb_buffer_fenced.h"
#include <os/os_thread.h>
+#include <sys/types.h>
#define VMW_GMR_POOL_SIZE (16*1024*1024)
#define VMW_QUERY_POOL_SIZE (8192)