diff options
author | Richard Levitte <levitte@openssl.org> | 2001-04-04 17:50:30 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-04-04 17:50:30 +0200 |
commit | 967d95f096e359174bb55733ff1cb56928710b07 (patch) | |
tree | 72d23fe346f3c45206cf8f6227bdca5e77afda2b /tools/c_rehash.in | |
parent | Since vms.mar handles 32-bit integers, do not use it on Alpha, that's (diff) | |
download | openssl-967d95f096e359174bb55733ff1cb56928710b07.tar.xz openssl-967d95f096e359174bb55733ff1cb56928710b07.zip |
Incorporate some changes that make OpenSSL compilable in CygWin.
Diffstat (limited to 'tools/c_rehash.in')
-rw-r--r-- | tools/c_rehash.in | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/tools/c_rehash.in b/tools/c_rehash.in index baec7c14ff..26db8999d8 100644 --- a/tools/c_rehash.in +++ b/tools/c_rehash.in @@ -117,7 +117,12 @@ sub link_hash_cert { } $hash .= ".$suffix"; print "$fname => $hash\n"; - symlink $fname, $hash; + $symlink_exists=eval {symlink("",""); 1}; + if ($symlink_exists) { + symlink $fname, $hash; + } else { + system ("cp", $fname, $hash); + } $hashlist{$hash} = $fprint; } @@ -142,7 +147,12 @@ sub link_hash_crl { } $hash .= ".r$suffix"; print "$fname => $hash\n"; - symlink $fname, $hash; + $symlink_exists=eval {symlink("",""); 1}; + if ($symlink_exists) { + symlink $fname, $hash; + } else { + system ("cp", $fname, $hash); + } $hashlist{$hash} = $fprint; } |