summaryrefslogtreecommitdiff
path: root/ext/Thread
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1997-11-15 02:58:09 +0000
committerGurusamy Sarathy <gsar@cpan.org>1997-11-15 02:58:09 +0000
commitfb223100faea9c444d933b6dea326556981d694c (patch)
treee6ea58c1eb2198843af87bbea5a7030829c7a52c /ext/Thread
parent2d63e3e140948d3d027cbbf76f121ae5d9c2fa6f (diff)
downloadperl-fb223100faea9c444d933b6dea326556981d694c.tar.gz
Add #include guard in Thread.xs so it will build even under
no USE_THREADS (for win32). This was missed because of edit w/o checkout perforce kludge. p4raw-id: //depot/win32/perl@256
Diffstat (limited to 'ext/Thread')
-rw-r--r--ext/Thread/Thread.xs2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/Thread/Thread.xs b/ext/Thread/Thread.xs
index 9e3c439276..db1b5d7dd2 100644
--- a/ext/Thread/Thread.xs
+++ b/ext/Thread/Thread.xs
@@ -581,8 +581,10 @@ void
data(classname = "Thread::Specific")
char * classname
PPCODE:
+#ifdef USE_THREADS
if (AvFILL(thr->specific) == -1) {
GV *gv = gv_fetchpv("Thread::Specific::FIELDS", TRUE, SVt_PVHV);
av_store(thr->specific, 0, newRV((SV*)GvHV(gv)));
}
XPUSHs(sv_bless(newRV((SV*)thr->specific),gv_stashpv(classname,TRUE)));
+#endif