From bcdf8bed9a6700406f655d86f7355c829679a3cb Mon Sep 17 00:00:00 2001 From: cristy Date: Thu, 10 Jan 2013 00:24:33 +0000 Subject: [PATCH] --- MagickCore/cache.c | 5 ----- MagickCore/distribute-cache.c | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/MagickCore/cache.c b/MagickCore/cache.c index 0a44b11a6..b9f94cb8f 100644 --- a/MagickCore/cache.c +++ b/MagickCore/cache.c @@ -71,11 +71,6 @@ #include "MagickCore/thread-private.h" #include "MagickCore/utility.h" #include "MagickCore/utility-private.h" -#if defined(MAGICKCORE_HAVE_SOCKET) -#include -#include -#include -#endif #if defined(MAGICKCORE_ZLIB_DELEGATE) #include "zlib.h" #endif diff --git a/MagickCore/distribute-cache.c b/MagickCore/distribute-cache.c index 245f72f1e..0d713c59f 100644 --- a/MagickCore/distribute-cache.c +++ b/MagickCore/distribute-cache.c @@ -57,7 +57,7 @@ #include "MagickCore/exception.h" #include "MagickCore/exception-private.h" #include "MagickCore/memory_.h" -#if defined(MAGICKCORE_HAVE_SOCKET) +#if defined(MAGICKCORE_HAVE_SOCKET) && defined(MAGICKCORE_HAVE_PTHREAD) #include #include #include @@ -156,7 +156,7 @@ MagickPrivate DistributeCacheInfo *DestroyDistributeCacheInfo( */ MagickExport void PixelCacheServer(const size_t port) { -#if defined(MAGICKCORE_HAVE_SOCKET) +#if defined(MAGICKCORE_HAVE_SOCKET) && defined(MAGICKCORE_HAVE_PTHREAD) char buffer[MaxTextExtent]; -- 2.40.0