From: cristy Date: Sun, 31 Mar 2013 01:08:49 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~3978 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d570f0b537d427e2e20060982aface8f03c6854;p=imagemagick --- diff --git a/MagickCore/distribute-cache.c b/MagickCore/distribute-cache.c index 6c43b7407..b9c2b17ee 100644 --- a/MagickCore/distribute-cache.c +++ b/MagickCore/distribute-cache.c @@ -73,11 +73,16 @@ #include "MagickCore/string-private.h" #include "MagickCore/version.h" #include "MagickCore/version-private.h" -#if defined(MAGICKCORE_HAVE_SOCKET) && !defined(__MINGW32__) && !defined(__MINGW64__) +#if defined(MAGICKCORE_HAVE_SOCKET) #include #include #include #include +#else +#undef send +#undef recv +#define send(file,buffer,length,flags) 0 +#define recv(file,buffer,length,flags) 0 #endif /* @@ -149,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) && !defined(__MINGW32__) && !defined(__MINGW64__) +#if defined(MAGICKCORE_HAVE_SOCKET) char service[MaxTextExtent]; @@ -840,7 +845,7 @@ static void *DistributePixelCacheClient(void *socket) MagickExport void DistributePixelCacheServer(const int port, ExceptionInfo *exception) { -#if defined(MAGICKCORE_HAVE_SOCKET) && defined(MAGICKCORE_THREAD_SUPPORT) && !defined(__MINGW32__) && !defined(__MINGW64__) +#if defined(MAGICKCORE_HAVE_SOCKET) char service[MaxTextExtent];