[Mesa-dev] [PATCH] svga: add missing sys/stat.h include

Romain Naour romain.naour at gmail.com
Sat Jun 2 16:22:28 UTC 2018


From: Bernd Kuhls <bernd.kuhls at t-online.de>

Fix musl build when svga gallium driver is enabled.

In file included from vmw_fence.c:34:0:
vmw_screen.h:100:4: error: unknown type name ‘dev_t’
    dev_t device;
    ^~~~~

Downloaded from
http://git.alpinelinux.org/cgit/aports/plain/main/mesa/musl-fixes.patch

Signed-off-by: Bernd Kuhls <bernd.kuhls at t-online.de>
[Romain: rebase on 18.1]
Signed-off-by: Romain Naour <romain.naour at gmail.com>
---
 src/gallium/winsys/svga/drm/vmw_screen.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/winsys/svga/drm/vmw_screen.h b/src/gallium/winsys/svga/drm/vmw_screen.h
index f21cabb51f..20d03f8b53 100644
--- a/src/gallium/winsys/svga/drm/vmw_screen.h
+++ b/src/gallium/winsys/svga/drm/vmw_screen.h
@@ -34,7 +34,7 @@
 #ifndef VMW_SCREEN_H_
 #define VMW_SCREEN_H_
 
-
+#include <sys/stat.h>
 #include "pipe/p_compiler.h"
 #include "pipe/p_state.h"
 
-- 
2.14.3



More information about the mesa-dev mailing list