2004/01/20 09:54:41
[org.ibex.core.git] / src / org / xwt / plat / Linux.cc
index fcc28b7..39ab5a8 100644 (file)
@@ -1 +1,16 @@
+#include <stdint.h>
 #include "X11.cc"
+
+#include <org/xwt/plat/Linux.h>
+
+// we love libgcj!
+extern const char **_Jv_argv;
+extern int _Jv_argc;
+
+void org::xwt::plat::Linux::fixEnvironment() {
+  // see http://lists.debian.org/debian-glibc/2003/debian-glibc-200311/msg00647.html
+    if (!strcmp("2.4.1", getenv("LD_ASSUME_KERNEL"))) {
+        putenv("LD_ASSUME_KERNEL", "2.4.1");
+        execvp(_Jv_argv[0], _Jv_argv);
+    }
+}