Browse Source

COMP: Fix more pthreads problems on windows

Andy Cedilnik 20 years ago
parent
commit
4100a6d767
2 changed files with 2 additions and 1 deletions
  1. 1 1
      Utilities/cmxmlrpc/CMakeLists.txt
  2. 1 0
      Utilities/cmxmlrpc/win32_pthreads.c

+ 1 - 1
Utilities/cmxmlrpc/CMakeLists.txt

@@ -49,7 +49,7 @@ ENDIF(ATTR_UNUSED_VAR)
 SET(HAVE_LIBWWW_SSL)
 SET(DIRECTORY_SEPARATOR "/")
 
-SET(HAVE_PTHREADS)
+SET(HAVE_PTHREADS 0)
 IF(CMAKE_BUILD_XMLRPC_WITH_THREADS)
   FIND_PACKAGE(Threads)
   IF(WIN32 OR CMAKE_USE_PTHREADS_INIT)

+ 1 - 0
Utilities/cmxmlrpc/win32_pthreads.c

@@ -27,6 +27,7 @@
 
 #ifdef _WIN32
 
+#define HAVE_PTHREADS 1
 #include "xmlrpc_pthreads.h"
 
 #include <process.h>