summaryrefslogtreecommitdiffstats
path: root/Utilities/cmxmlrpc/xmlrpc_transport.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-01 14:07:38 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-01 14:07:38 (GMT)
commit1191bd7af1f78db7b8e6d0bd174df360d5c1407d (patch)
tree98c502fde4137957bf5607f2f7e257d15681133d /Utilities/cmxmlrpc/xmlrpc_transport.h
parent2e00f02112fa92533d75757464ff1683691eebbd (diff)
downloadCMake-1191bd7af1f78db7b8e6d0bd174df360d5c1407d.zip
CMake-1191bd7af1f78db7b8e6d0bd174df360d5c1407d.tar.gz
CMake-1191bd7af1f78db7b8e6d0bd174df360d5c1407d.tar.bz2
ENH: Attempt to remove threading code
Diffstat (limited to 'Utilities/cmxmlrpc/xmlrpc_transport.h')
-rw-r--r--Utilities/cmxmlrpc/xmlrpc_transport.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/Utilities/cmxmlrpc/xmlrpc_transport.h b/Utilities/cmxmlrpc/xmlrpc_transport.h
index e84832f..1a45166 100644
--- a/Utilities/cmxmlrpc/xmlrpc_transport.h
+++ b/Utilities/cmxmlrpc/xmlrpc_transport.h
@@ -6,7 +6,9 @@
extern "C" {
#endif
-#include "xmlrpc_pthreads.h" /* For threading helpers. */
+#if defined(HAVE_PTHREADS)
+# include "xmlrpc_pthreads.h" /* For threading helpers. */
+#endif
struct call_info;
@@ -67,6 +69,7 @@ struct clientTransportOps {
** Transport Helper Functions and declarations.
**=========================================================================
*/
+#if defined(HAVE_PTHREADS)
typedef struct _running_thread_info
{
struct _running_thread_info * Next;
@@ -90,6 +93,7 @@ void register_asynch_thread (running_thread_list *list, pthread_t *thread);
/* MRB-WARNING: Only call when you have successfully
** acquired the Lock/Unlock mutex! */
void unregister_asynch_thread (running_thread_list *list, pthread_t *thread);
+#endif
#ifdef __cplusplus