[PATCH 01/13] Cygwin/X: Cygwin doesn't have RTLD_LOCAL

Jon TURNEY jon.turney at dronecode.org.uk
Wed Jan 7 12:03:56 PST 2009


From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>

RTLD_LOCAL is not defined on Cygwin

Signed-off-by: Jon TURNEY <jon.turney at dronecode.org.uk>
---
 glx/glxdriswrast.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/glx/glxdriswrast.c b/glx/glxdriswrast.c
index 5b3ecb0..de89d38 100644
--- a/glx/glxdriswrast.c
+++ b/glx/glxdriswrast.c
@@ -55,6 +55,13 @@
 #include "dispatch.h"
 #include "extension_string.h"
 
+/* RTLD_LOCAL is not defined on Cygwin */
+#ifdef __CYGWIN__
+#ifndef RTLD_LOCAL
+#define RTLD_LOCAL 0
+#endif
+#endif
+
 typedef struct __GLXDRIscreen   __GLXDRIscreen;
 typedef struct __GLXDRIcontext  __GLXDRIcontext;
 typedef struct __GLXDRIdrawable __GLXDRIdrawable;
-- 
1.6.0.4




More information about the xorg mailing list