From: Adam Dickmeiss Date: Sat, 29 May 2004 07:04:26 +0000 (+0000) Subject: Use only perl_clone if USE_ITHREADS is defined X-Git-Tag: release.0.0.8.lau~10 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=c7145efffe9cfd830ba341d782e8b07ca0a6b40f;p=simpleserver-moved-to-github.git Use only perl_clone if USE_ITHREADS is defined --- diff --git a/SimpleServer.xs b/SimpleServer.xs index f3cd24b..9e27621 100644 --- a/SimpleServer.xs +++ b/SimpleServer.xs @@ -1,5 +1,5 @@ /* - * $Id: SimpleServer.xs,v 1.25 2004-05-14 04:07:50 adam Exp $ + * $Id: SimpleServer.xs,v 1.26 2004-05-29 07:04:26 adam Exp $ * ---------------------------------------------------------------------- * * Copyright (c) 2000-2004, Index Data. @@ -118,6 +118,7 @@ int tst_clones(void) #endif int simpleserver_clone(void) { +#ifdef USE_ITHREADS nmem_mutex_enter(simpleserver_mutex); if (1) { @@ -135,6 +136,7 @@ int simpleserver_clone(void) { } } nmem_mutex_leave(simpleserver_mutex); +#endif return 0; }