summaryrefslogtreecommitdiff
path: root/crypto/cast/asm/cast-586.pl
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/cast/asm/cast-586.pl')
-rw-r--r--crypto/cast/asm/cast-586.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/cast/asm/cast-586.pl b/crypto/cast/asm/cast-586.pl
index 6be0bfe572..bf6810d335 100644
--- a/crypto/cast/asm/cast-586.pl
+++ b/crypto/cast/asm/cast-586.pl
@@ -3,7 +3,8 @@
# define for pentium pro friendly version
$ppro=1;
-push(@INC,"perlasm","../../perlasm");
+$0 =~ m/(.*[\/\\])[^\/\\]+$/; $dir=$1;
+push(@INC,"${dir}","${dir}../../perlasm");
require "x86asm.pl";
require "cbc.pl";