X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fyaz-pdu-assoc-thread.cpp;h=aadcca1d42be90aca157d8b52676829423610298;hb=4391c9699f5a37b73d63ba157157e9221aec566c;hp=4a445fd48439472fe7c0452a238fefd05637ed6c;hpb=966d1a0443071c2b75426d0214bfb9960c5c3fba;p=yazpp-moved-to-github.git diff --git a/src/yaz-pdu-assoc-thread.cpp b/src/yaz-pdu-assoc-thread.cpp index 4a445fd..aadcca1 100644 --- a/src/yaz-pdu-assoc-thread.cpp +++ b/src/yaz-pdu-assoc-thread.cpp @@ -2,17 +2,26 @@ * Copyright (c) 1998-2001, Index Data. * See the file LICENSE for details. * - * $Id: yaz-pdu-assoc-thread.cpp,v 1.4 2001-11-04 22:36:21 adam Exp $ + * $Id: yaz-pdu-assoc-thread.cpp,v 1.5 2001-11-06 17:08:05 adam Exp $ */ #ifdef WIN32 +#define USE_THREADS 1 +#endif + +#if YAZ_POSIX_THREADS +#define USE_THREADS 1 +#endif + +#if USE_THREADS + +#ifdef WIN32 #include #else #include #include #endif - #include #include #include @@ -20,8 +29,6 @@ #include #include - - Yaz_PDU_AssocThread::Yaz_PDU_AssocThread( IYazSocketObservable *socketObservable) : Yaz_PDU_Assoc(socketObservable) @@ -78,3 +85,4 @@ void Yaz_PDU_AssocThread::childNotify(COMSTACK cs) pthread_detach (tid); #endif } +#endif