Ticket #18859: freetype.diff

File freetype.diff, 1.7 KB (added by blb@…, 16 years ago)

diff to freetype

  • files/patch-src_base_ftrfork.c.diff

     
     1--- src/base/ftrfork.c.orig     2009-03-12 01:50:33.000000000 -0600
     2+++ src/base/ftrfork.c  2009-03-15 19:57:24.000000000 -0600
     3@@ -476,29 +476,7 @@
     4     /*
     5       Only meaningful on systems with hfs+ drivers (or Macs).
     6      */
     7-    FT_Error   error;
     8-    char*      newpath;
     9-    FT_Memory  memory;
     10-    FT_Long    base_file_len = ft_strlen( base_file_name );
     11-
     12-    FT_UNUSED( stream );
     13-
     14-
     15-    memory = library->memory;
     16-
     17-    if ( base_file_len + 6 > FT_INT_MAX )
     18-      return FT_Err_Array_Too_Large;
     19-
     20-    if ( FT_ALLOC( newpath, base_file_len + 6 ) )
     21-      return error;
     22-
     23-    FT_MEM_COPY( newpath, base_file_name, base_file_len );
     24-    FT_MEM_COPY( newpath + base_file_len, "/rsrc", 6 );
     25-
     26-    *result_file_name = newpath;
     27-    *result_offset    = 0;
     28-
     29-    return FT_Err_Ok;
     30+    return raccess_guess_darwin_newvfs( library, stream, base_file_name, result_file_name, result_offset );
     31   }
     32 
     33 
  • Portfile

     
    44
    55name                    freetype
    66version                 2.3.9
     7revision                1
    78categories              print graphics
    89maintainers             ryandesign
    910homepage                http://freetype.sourceforge.net/
     
    4445
    4546patchfiles \
    4647    patch-detect.mk.diff \
    47     patch-modules.cfg.diff
     48    patch-modules.cfg.diff \
     49    patch-src_base_ftrfork.c.diff
    4850
    4951depends_lib \
    5052    port:zlib