Mesa (master): targets/egl-static: fix building without libudev

Chia-I Wu olv at kemper.freedesktop.org
Sun Jun 26 09:07:06 UTC 2011


Module: Mesa
Branch: master
Commit: a1cadf2b5c3b8f2e33207e81ee4d1476b5f87805
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a1cadf2b5c3b8f2e33207e81ee4d1476b5f87805

Author: Chia-I Wu <olv at lunarg.com>
Date:   Sun Jun 26 18:03:15 2011 +0900

targets/egl-static: fix building without libudev

Thanks to José for pointing out.

---

 src/gallium/targets/egl-static/egl.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/gallium/targets/egl-static/egl.c b/src/gallium/targets/egl-static/egl.c
index 9b59ebd..568f549 100644
--- a/src/gallium/targets/egl-static/egl.c
+++ b/src/gallium/targets/egl-static/egl.c
@@ -33,9 +33,10 @@
 #ifdef HAVE_LIBUDEV
 #include <stdio.h> /* for sscanf */
 #include <libudev.h>
+#endif
+
 #define DRIVER_MAP_GALLIUM_ONLY
 #include "pci_ids/pci_id_driver_map.h"
-#endif
 
 #include "egl_pipe.h"
 #include "egl_st.h"




More information about the mesa-commit mailing list