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

index edc52fb1bf3150166a38de705b978799664c2632..6c43b74070f96660aaad7766892f0ea3cfae186d 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(__MINGW32__) && !defined(__MINGW64__)
 #include <netinet/in.h>
 #include <netdb.h>
 #include <sys/socket.h>
@@ -149,7 +149,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(__MINGW32__) && !defined(__MINGW64__)
   char
     service[MaxTextExtent];
 
@@ -840,7 +840,7 @@ static void *DistributePixelCacheClient(void *socket)
 MagickExport void DistributePixelCacheServer(const int port,
   ExceptionInfo *exception)
 {
-#if defined(MAGICKCORE_HAVE_SOCKET) && defined(MAGICKCORE_THREAD_SUPPORT)
+#if defined(MAGICKCORE_HAVE_SOCKET) && defined(MAGICKCORE_THREAD_SUPPORT) && !defined(__MINGW32__) && !defined(__MINGW64__)
   char
     service[MaxTextExtent];