diff --git a/magick/cache.c b/magick/cache.c
index 028004b..19be742 100644
--- a/magick/cache.c
+++ b/magick/cache.c
@@ -691,7 +691,7 @@
cache_info->timestamp=time(0);
#if !defined(MAGICKCORE_HAVE_PREAD)
LockSemaphoreInfo(cache_info->disk_semaphore);
- if (MagickSeek(cache_info->file,offset,SEEK_SET) < 0)
+ if (lseek(cache_info->file,offset,SEEK_SET) < 0)
{
UnlockSemaphoreInfo(cache_info->disk_semaphore);
return((MagickOffsetType) -1);
@@ -735,7 +735,7 @@
cache_info->timestamp=time(0);
#if !defined(MAGICKCORE_HAVE_PWRITE)
LockSemaphoreInfo(cache_info->disk_semaphore);
- if (MagickSeek(cache_info->file,offset,SEEK_SET) < 0)
+ if (lseek(cache_info->file,offset,SEEK_SET) < 0)
{
UnlockSemaphoreInfo(cache_info->disk_semaphore);
return((MagickOffsetType) -1);
@@ -3958,7 +3958,7 @@
}
if (length != (MagickSizeType) ((MagickOffsetType) length))
return(MagickFalse);
- extent=(MagickOffsetType) MagickSeek(cache_info->file,0,SEEK_END);
+ extent=(MagickOffsetType) lseek(cache_info->file,0,SEEK_END);
if (extent < 0)
return(MagickFalse);
if ((MagickSizeType) extent >= length)