[PATCH] egl-fbdev: Fix compile-error by including errno.h

David Herrmann dh.herrmann at googlemail.com
Sat Apr 14 08:02:21 PDT 2012


We use errno and EINVAL so include errno.h.

Signed-off-by: David Herrmann <dh.herrmann at googlemail.com>
---
 src/gallium/state_trackers/egl/fbdev/native_fbdev.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/state_trackers/egl/fbdev/native_fbdev.c b/src/gallium/state_trackers/egl/fbdev/native_fbdev.c
index b45ab5c..b17a8ce 100644
--- a/src/gallium/state_trackers/egl/fbdev/native_fbdev.c
+++ b/src/gallium/state_trackers/egl/fbdev/native_fbdev.c
@@ -41,6 +41,7 @@
  *  - no pixmap support
  */
 
+#include <errno.h>
 #include <sys/ioctl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
-- 
1.7.10



More information about the dri-devel mailing list