summaryrefslogtreecommitdiff
path: root/dln.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-20 06:22:50 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-20 06:22:50 +0000
commit65ba3eba645a61ae9995f9f1e88cab6150c858a7 (patch)
tree65059b38fc55fe27377314c663426f71be81bccc /dln.c
parent068bc7e43a7e88d9d48aa627a846ef5f22660694 (diff)
* defines.h (PATH_ENV): name of PATH environment. [new].
* defines.h (ENV_IGNORECASE): define for case insensitive platforms to access environment variables. * dln.c (dln_find_exe): use PATH_ENV instead of "PATH". * hash.c (env_delete, rb_f_getenv, env_fetch, rb_env_path_tainted, env_aset): ditto. * ruby.c (proc_options): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'dln.c')
-rw-r--r--dln.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/dln.c b/dln.c
index 4140c10..f6950e1 100644
--- a/dln.c
+++ b/dln.c
@@ -1591,11 +1591,7 @@ dln_find_exe(fname, path)
const char *path;
{
if (!path) {
-#if defined(__human68k__)
- path = getenv("path");
-#else
- path = getenv("PATH");
-#endif
+ path = getenv(PATH_ENV);
}
if (!path) {