* builds/unix/ftsystem.c (FT_Stream_Open): Handle return value 0 of

mmap (which might happen on some RTOS).  From Savannah patch #5909.
This commit is contained in:
Werner Lemberg 2007-05-04 06:13:46 +00:00
parent 106eaf1dbb
commit 5077e83e11
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-05-04 harry@kdevelop.org
* builds/unix/ftsystem.c (FT_Stream_Open): Handle return value 0 of
mmap (which might happen on some RTOS). From Savannah patch #5909.
2007-05-03 Werner Lemberg <wl@gnu.org>
* src/base/ftobjs.c (FT_Set_Char_Size): Simplify code.

View File

@ -291,7 +291,8 @@
file,
0 );
if ( (long)stream->base != -1 )
/* on some RTOS, mmap might return 0 */
if ( (long)stream->base != -1 && stream->base != NULL )
stream->close = ft_close_stream_by_munmap;
else
{