projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
27c78c6
)
2004/01/20 09:54:41
author
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 08:04:54 +0000
(08:04 +0000)
committer
megacz
<megacz@xwt.org>
Fri, 30 Jan 2004 08:04:54 +0000
(08:04 +0000)
darcs-hash:
20040130080454
-2ba56-
cf923c43fe3067160499fcedf421aecf950f7905
.gz
src/org/xwt/plat/Linux.cc
patch
|
blob
|
history
diff --git
a/src/org/xwt/plat/Linux.cc
b/src/org/xwt/plat/Linux.cc
index
2f7ca8c
..
39ab5a8
100644
(file)
--- a/
src/org/xwt/plat/Linux.cc
+++ b/
src/org/xwt/plat/Linux.cc
@@
-3,7
+3,14
@@
#include <org/xwt/plat/Linux.h>
#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
void org::xwt::plat::Linux::fixEnvironment() {
// see http://lists.debian.org/debian-glibc/2003/debian-glibc-200311/msg00647.html
- setenv("LD_ASSUME_KERNEL", "2.4.1", 0);
+ if (!strcmp("2.4.1", getenv("LD_ASSUME_KERNEL"))) {
+ putenv("LD_ASSUME_KERNEL", "2.4.1");
+ execvp(_Jv_argv[0], _Jv_argv);
+ }
}
}