2004/01/17 06:46:42
authormegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:44:41 +0000 (07:44 +0000)
committermegacz <megacz@xwt.org>
Fri, 30 Jan 2004 07:44:41 +0000 (07:44 +0000)
darcs-hash:20040130074441-2ba56-0c807db73914105b251d9cef273ac70abca5c5c7.gz

src/org/xwt/plat/Linux.cc
src/org/xwt/plat/Linux.java

index 12c927a..7b82e2b 100644 (file)
@@ -1,2 +1,9 @@
 #include <stdint.h>
 #include "X11.cc"
+
+#include <org/xwt/plat/Linux.h>
+
+void org::xwt::plat::X11$X11PixelBuffer::fixEnvironment() {
+  // see http://lists.debian.org/debian-glibc/2003/debian-glibc-200311/msg00647.html
+  setenv("LD_ASSUME_KERNEL", "2.4.1", 0);
+}
index b291801..a976aa9 100644 (file)
@@ -5,4 +5,11 @@ import org.xwt.*;
 
 /** Linux with an X11 display */
 public abstract class Linux extends X11 {
+
+    private native void fixEnvironment();
+    
+    public Linux() {
+        fixEnvironment();
+    }
+
 }