Mesa (master): glapi: Do not include dlfcn.h on Windows.

Vinson Lee vlee at kemper.freedesktop.org
Sat Dec 7 22:31:55 UTC 2013


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

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Thu Oct 10 18:13:25 2013 -0700

glapi: Do not include dlfcn.h on Windows.

This patch fixes this MinGW build error.

  CC     glapi_gentable.lo
glapi_gentable.c:47:19: fatal error: dlfcn.h: No such file or directory

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mapi/glapi/gen/gl_gentable.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mapi/glapi/gen/gl_gentable.py b/src/mapi/glapi/gen/gl_gentable.py
index fa96268..35dddc7 100644
--- a/src/mapi/glapi/gen/gl_gentable.py
+++ b/src/mapi/glapi/gen/gl_gentable.py
@@ -50,7 +50,9 @@ header = """/* GLXEXT is the define used in the xserver when the GLX extension i
 #include <execinfo.h>
 #endif
 
+#ifndef _WIN32
 #include <dlfcn.h>
+#endif
 #include <stdlib.h>
 #include <stdio.h>
 




More information about the mesa-commit mailing list