]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Tue, 23 Apr 2013 16:29:17 +0000 (16:29 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Tue, 23 Apr 2013 16:29:17 +0000 (16:29 +0000)
MagickCore/distribute-cache.c

index 30061c3ce57d1b04421a9a29b2a96939d1d28ade..7ce6cc5bbb92c13aeb6b86d84203f2b892e07825 100644 (file)
@@ -73,7 +73,7 @@
 #include "MagickCore/string-private.h"
 #include "MagickCore/version.h"
 #include "MagickCore/version-private.h"
-#if defined(MAGICKCORE_HAVE_SOCKET)
+#if defined(MAGICKCORE_HAVE_SOCKET) && defined(MAGICKCORE_HAVE_PTHREAD)
 #include <netinet/in.h>
 #include <netdb.h>
 #include <sys/socket.h>
@@ -154,7 +154,7 @@ static inline MagickOffsetType dpc_read(int file,const MagickSizeType length,
 static int ConnectPixelCacheServer(const char *hostname,const int port,
   size_t *session_key,ExceptionInfo *exception)
 {
-#if defined(MAGICKCORE_HAVE_SOCKET)
+#if defined(MAGICKCORE_HAVE_SOCKET) && defined(MAGICKCORE_HAVE_PTHREAD)
   char
     service[MaxTextExtent];
 
@@ -848,7 +848,7 @@ static void *DistributePixelCacheClient(void *socket)
 MagickExport void DistributePixelCacheServer(const int port,
   ExceptionInfo *exception)
 {
-#if defined(MAGICKCORE_HAVE_SOCKET)
+#if defined(MAGICKCORE_HAVE_SOCKET) && defined(MAGICKCORE_HAVE_PTHREAD)
   char
     service[MaxTextExtent];