]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 13 Jun 2013 22:53:54 +0000 (22:53 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 13 Jun 2013 22:53:54 +0000 (22:53 +0000)
MagickCore/blob.c

index 8e973ba4592efdaf4c1b7367b7406d8e4d95cb8f..044dcc0f9f8a6a9d61c7d2e1131740af67d7ac0f 100644 (file)
@@ -81,9 +81,6 @@
 #if !defined(MAP_FAILED)
 #define MAP_FAILED  ((void *) -1)
 #endif
-#if !defined(MS_SYNC)
-#define MS_SYNC  0x04
-#endif
 #if defined(__OS2__)
 #include <io.h>
 #define _O_BINARY O_BINARY
@@ -3901,7 +3898,7 @@ static int SyncBlob(Image *image)
       break;
     case BlobStream:
     {
-#if defined(MAGICKCORE_HAVE_MMAP_FILEIO)
+#if defined(MAGICKCORE_HAVE_MMAP_FILEIO) && defined(MS_SYNC)
       if (image->blob->mapped != MagickFalse)
         status=msync(image->blob->data,image->blob->length,MS_SYNC);
 #endif