]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 31 Mar 2013 01:08:49 +0000 (01:08 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 31 Mar 2013 01:08:49 +0000 (01:08 +0000)
MagickCore/distribute-cache.c

index 6c43b74070f96660aaad7766892f0ea3cfae186d..b9c2b17ee6c6bfb1454a19706aad72aed199b9b3 100644 (file)
 #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 <netinet/in.h>
 #include <netdb.h>
 #include <sys/socket.h>
 #include <arpa/inet.h>
+#else
+#undef send
+#undef recv
+#define send(file,buffer,length,flags)  0
+#define recv(file,buffer,length,flags)  0
 #endif
 \f
 /*
@@ -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];