Add a patch to fix the build when the THREADS option is unset.

Submitted by:	many
This commit is contained in:
Koop Mast 2014-12-31 14:45:06 +00:00
parent 5a9c8edcc9
commit 225afdd87d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=375890

View File

@ -0,0 +1,15 @@
Index: magick/distribute-cache.c
===================================================================
--- magick/distribute-cache.c (revision 17523)
+++ magick/distribute-cache.c (working copy)
@@ -92,6 +92,10 @@
#define SOCKET_TYPE SOCKET
#define MAGICKCORE_HAVE_DISTRIBUTE_CACHE
#else
+#define CLOSE_SOCKET(socket)
+#define HANDLER_RETURN_TYPE void *
+#define HANDLER_RETURN_VALUE (void *) NULL
+#define SOCKET_TYPE int
#undef send
#undef recv
#define send(file,buffer,length,flags) 0