egl-fbdev: Fix compile-error by including errno.h
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 29 Apr 2012 09:53:16 +0000 (11:53 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 30 Apr 2012 17:27:05 +0000 (13:27 -0400)
We use errno and EINVAL so include errno.h.

This patch introduced this bug:
http://cgit.freedesktop.org/mesa/mesa/commit/src/gallium/state_trackers/egl/fbdev/native_fbdev.c?id=b60120608f6ddf4098bc324363197c979ee04cb7

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Cc: Chia-I Wu <olv@lunarg.com>
Cc: Dave Airlie <airlied@redhat.com>
Cc: Adam Jackson <ajax@redhat.com>
Cc: Jesse Barnes <jbarnes@virtuousgeek.org>
src/gallium/state_trackers/egl/fbdev/native_fbdev.c

index b45ab5c4f2e86b5b3375616e870d9060a8ca250b..b17a8ce78c9a4ddaa795e7873d4603d916298286 100644 (file)
@@ -41,6 +41,7 @@
  *  - no pixmap support
  */
 
+#include <errno.h>
 #include <sys/ioctl.h>
 #include <sys/types.h>
 #include <sys/stat.h>