Explorar o código

ENH: More removing of pthreads

Andy Cedilnik %!s(int64=21) %!d(string=hai) anos
pai
achega
88c376f128
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      Utilities/cmxmlrpc/xmlrpc_curl_transport.c

+ 4 - 0
Utilities/cmxmlrpc/xmlrpc_curl_transport.c

@@ -46,7 +46,9 @@
 
 
 
 
 struct clientTransport {
 struct clientTransport {
+#if defined (HAVE_PTHREADS)
     pthread_mutex_t listLock;
     pthread_mutex_t listLock;
+#endif
     struct list_head rpcList;
     struct list_head rpcList;
         /* List of all RPCs that exist for this transport.  An RPC exists
         /* List of all RPCs that exist for this transport.  An RPC exists
            from the time the user requests it until the time the user 
            from the time the user requests it until the time the user 
@@ -79,7 +81,9 @@ typedef struct {
         */
         */
     xmlrpc_mem_block * responseXmlP;
     xmlrpc_mem_block * responseXmlP;
     xmlrpc_bool threadExists;
     xmlrpc_bool threadExists;
+#if defined(HAVE_PTHREADS)
     pthread_t thread;
     pthread_t thread;
+#endif
     transport_asynch_complete complete;
     transport_asynch_complete complete;
         /* Routine to call to complete the RPC after it is complete HTTP-wise.
         /* Routine to call to complete the RPC after it is complete HTTP-wise.
            NULL if none.
            NULL if none.