The cbc functions shouldn't be inside #ifdef OPENSSL_NO_TLSEXT
[openssl.git] / util / mklink.pl
index d9bc98aab8788cdcca76aecfa3e1a835537df856..eacc32788264f5c3fcbfe7cfa9935ba6df363c02 100755 (executable)
 # Apart from this, this script should be able to handle even the most
 # pathological cases.
 
-use Cwd;
+my $pwd;
+eval 'use Cwd;';
+if ($@)
+       {
+       $pwd = `pwd`;
+       }
+else
+       {
+       $pwd = getcwd();
+       }
 
 my $from = shift;
 my @files = @ARGV;
 
 my @from_path = split(/[\\\/]/, $from);
-my $pwd = getcwd();
 chomp($pwd);
 my @pwd_path = split(/[\\\/]/, $pwd);