Skip to content

Commit 37f7778

Browse files
author
Steve Hay
committed
Restore unthreaded build following r1682366
git-svn-id: https://svn.apache.org/repos/asf/perl/modperl/trunk@1683472 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6ff93a6 commit 37f7778

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/modules/perl/modperl_error.h

+4
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,17 @@ char *modperl_error_strerror(pTHX_ apr_status_t rc);
3737

3838
void modperl_croak(pTHX_ apr_status_t rc, const char* func);
3939

40+
#ifdef USE_ITHREADS
4041
#define MP_PUTBACK_IF_USED() STMT_START \
4142
{ \
4243
modperl_interp_t *interp = modperl_thx_interp_get(aTHX); \
4344
if (interp && interp->refcnt > 1) { \
4445
modperl_interp_unselect(interp); \
4546
} \
4647
} STMT_END
48+
#else
49+
#define MP_PUTBACK_IF_USED() NOOP
50+
#endif
4751

4852
#define MP_CROAK_PUTBACK(rc, func) STMT_START \
4953
{ \

0 commit comments

Comments
 (0)