summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-04-04 15:50:30 +0000
committerRichard Levitte <levitte@openssl.org>2001-04-04 15:50:30 +0000
commit967d95f096e359174bb55733ff1cb56928710b07 (patch)
tree72d23fe346f3c45206cf8f6227bdca5e77afda2b /tools
parent26c7750827a47654d7243b200eb8f07d4559c9f4 (diff)
downloadopenssl-new-967d95f096e359174bb55733ff1cb56928710b07.tar.gz
Incorporate some changes that make OpenSSL compilable in CygWin.
Diffstat (limited to 'tools')
-rw-r--r--tools/c_rehash.in14
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;
}