From: Gurusamy Sarathy Date: Sat, 15 Nov 1997 02:58:09 +0000 (+0000) Subject: Add #include guard in Thread.xs so it will build even under X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fb223100faea9c444d933b6dea326556981d694c;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/ext/Thread/Thread.xs b/ext/Thread/Thread.xs index 9e3c439..db1b5d7 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