diff options
Diffstat (limited to 'libjava/posix.cc')
-rw-r--r-- | libjava/posix.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libjava/posix.cc b/libjava/posix.cc index 2f808334d7c..de58ab025c0 100644 --- a/libjava/posix.cc +++ b/libjava/posix.cc @@ -25,9 +25,6 @@ details. */ extern "C" unsigned long long _clock (void); #endif -// platform-specific executable name -extern const char **_Jv_argv; - #if defined(HAVE_PROC_SELF_EXE) static char exec_name[20]; // initialized in _Jv_platform_initialize() @@ -41,7 +38,7 @@ const char *_Jv_ThisExecutable (void) return exec_name; // initialized in _Jv_platform_initialize() #else - return _Jv_argv[0]; + return _Jv_GetSafeArg (0); #endif } |