提交 a2688c87 编写于 作者: A Andy Polyakov

Minor portability update to c_rehash.

上级 5b50f99e
......@@ -15,7 +15,13 @@ if(defined $ENV{OPENSSL}) {
$ENV{OPENSSL} = $openssl;
}
my $pwd = `pwd`; chomp $pwd;
my $pwd;
eval "require Cwd";
if (defined(&Cwd::getcwd)) {
$pwd=Cwd::getcwd();
} else {
$pwd=`pwd`; chomp($pwd);
}
my $path_delim = ($pwd =~ /^[a-z]\:/i) ? ';' : ':'; # DOS/Win32 or Unix delimiter?
$ENV{PATH} .= "$path_delim$dir/bin";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册