diff options
author | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-15 02:58:09 +0000 |
---|---|---|
committer | Gurusamy Sarathy <gsar@cpan.org> | 1997-11-15 02:58:09 +0000 |
commit | fb223100faea9c444d933b6dea326556981d694c (patch) | |
tree | e6ea58c1eb2198843af87bbea5a7030829c7a52c /ext/Thread | |
parent | 2d63e3e140948d3d027cbbf76f121ae5d9c2fa6f (diff) | |
download | perl-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.xs | 2 |
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 |