On Sunday 26 July 2009 21:09:55 Laurent Monin wrote:
> Greg Troxel a écrit :
> > and Mac OS X 10.5.7 has MAP_ANON and not MAP_ANONYMOUS.  Just dropping
> > it seems not justified, but perhaps it is actually ok.
>
> Yes, instead can you try the attached patch ?
>
> MAP_ANON should be defined, but not MAP_ANONYMOUS on some systems,
> so making an alias should suffice.
>

The patch looks good.

Another question is if this mmap hack works on non-linux systems.
It is supposed to handle the situation when an image is truncated during 
reading.
It can be tested with this script:

while true; do
  cat 1.jpg >out.jpg
  cat 2.jpg >out.jpg
done

The images 1.jpg and 2.jpg should differ in size, like 50KB and 500KB.
Point geeqie to out.jpg while the script is running and it should not crash.

Vladimir






------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geeqie-devel mailing list
Geeqie-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geeqie-devel

Reply via email to