From fb223100faea9c444d933b6dea326556981d694c Mon Sep 17 00:00:00 2001 From: Gurusamy Sarathy Date: Sat, 15 Nov 1997 02:58:09 +0000 Subject: [PATCH] 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 --- ext/Thread/Thread.xs | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.7.4