39ab5a855cbccf8bb4634cb0baee530d82df2b69
[org.ibex.core.git] / src / org / xwt / plat / Linux.cc
1 #include <stdint.h>
2 #include "X11.cc"
3
4 #include <org/xwt/plat/Linux.h>
5
6 // we love libgcj!
7 extern const char **_Jv_argv;
8 extern int _Jv_argc;
9
10 void org::xwt::plat::Linux::fixEnvironment() {
11   // see http://lists.debian.org/debian-glibc/2003/debian-glibc-200311/msg00647.html
12     if (!strcmp("2.4.1", getenv("LD_ASSUME_KERNEL"))) {
13         putenv("LD_ASSUME_KERNEL", "2.4.1");
14         execvp(_Jv_argv[0], _Jv_argv);
15     }
16 }