--- /dev/null
+diff --git a/thirdparty/khronos/GLES/glext.h b/thirdparty/khronos/GLES/glext.h
+index d591832..90fd2c3 100644
+--- a/thirdparty/khronos/GLES/glext.h
++++ b/thirdparty/khronos/GLES/glext.h
+@@ -1,5 +1,5 @@
+-#ifndef __glext_h_
+-#define __glext_h_
++#ifndef __gles_glext_h_
++#define __gles_glext_h_
+
+ /* $Revision: 16481 $ on $Date:: 2012-01-04 10:43:56 -0800 #$ */
+
+@@ -1179,5 +1179,5 @@ typedef void (GL_APIENTRYP PFNGLENDTILINGQCOMPROC) (GLbitfield preserveMask);
+ }
+ #endif
+
+-#endif /* __glext_h_ */
++#endif /* __gles_glext_h_ */
+
wget -O $@ "http://www.khronos.org/registry/egl/api/$@"
patch $@ $<
-GLES/gl.h GLES/glext.h GLES/glplatform.h: FORCE
+GLES/gl.h GLES/glplatform.h: FORCE
wget -O $@ "http://www.khronos.org/registry/gles/api/1.1/$(@F)"
+GLES/glext.h: GLES/glext.patch FORCE
+ wget -O $@ "http://www.khronos.org/registry/gles/api/1.1/$(@F)"
+ patch $@ $<
+
GLES2/gl2.h GLES2/gl2ext.h GLES2/gl2platform.h: FORCE
wget -O $@ "http://www.khronos.org/registry/gles/api/2.0/$(@F)"