winsys/svga/drm: Include sys/types.h
authorKhem Raj <raj.khem@gmail.com>
Mon, 25 Feb 2019 20:06:47 +0000 (20:06 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 30 Apr 2019 12:50:25 +0000 (13:50 +0100)
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 <eric.engestrom@intel.com>
src/gallium/winsys/svga/drm/vmw_screen.h

index a87c087d9c53d510270ca71f155d2b1a984c4281..cb34fec48e7a9cefa586b783904b533706a5e3e0 100644 (file)
@@ -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)