summaryrefslogtreecommitdiff
path: root/mg.c
diff options
context:
space:
mode:
authorNick Ing-Simmons <nik@tiuk.ti.com>1998-07-26 14:31:01 +0000
committerNick Ing-Simmons <nik@tiuk.ti.com>1998-07-26 14:31:01 +0000
commitc485e6072d15e92c314a8b9cb6957c3edf13f985 (patch)
tree91936656aa4b557fe9c7bb4b88a47b3e3591df64 /mg.c
parentf13d8a8ffd56f8f5e7431d8bef692aaa336d55a8 (diff)
downloadperl-c485e6072d15e92c314a8b9cb6957c3edf13f985.tar.gz
Add dTHR so that it compiles miniperl in threaded mode
p4raw-id: //depot/perl@1667
Diffstat (limited to 'mg.c')
-rw-r--r--mg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mg.c b/mg.c
index 3efa41764b..45ec354c46 100644
--- a/mg.c
+++ b/mg.c
@@ -1149,6 +1149,7 @@ magic_setpos(SV *sv, MAGIC *mg)
SSize_t pos;
STRLEN len;
STRLEN ulen;
+ dTHR;
mg = 0;
@@ -1166,7 +1167,7 @@ magic_setpos(SV *sv, MAGIC *mg)
}
len = SvPOK(lsv) ? SvCUR(lsv) : sv_len(lsv);
- WITH_THR(pos = SvIV(sv) - PL_curcop->cop_arybase);
+ pos = SvIV(sv) - PL_curcop->cop_arybase;
if (IN_UTF8) {
ulen = sv_len_utf8(lsv);