Ticket #4982: libXfont-1.4.7-fontsproto-fix-1.patch

File libXfont-1.4.7-fontsproto-fix-1.patch, 938 bytes (added by Miklos Karacsony, 10 years ago)

This patch will fix the build

  • src/util/patcache.c

    Submitted By:            Miklos Karacsony <mkaracsony81 at gmail dot com>
    Date:                    2014-04-22
    Initial Package Version: 1.4.7
    Upstream Status:         Not submitted.
    Origin:                  Self
    Description:             Match declaration types with the ones included in fontsproto-2.1.3
    
    diff -U 3 -H -d -r -N -- libXfont-1.4.7/src/util/patcache.c libXfont-1.4.7.mod/src/util/patcache.c
    old new  
    128128/* add entry */
    129129void
    130130CacheFontPattern (FontPatternCachePtr cache,
    131                   char *pattern,
     131                  const char *pattern,
    132132                  int patlen,
    133133                  FontPtr pFont)
    134134{
     
    174174/* find matching entry */
    175175FontPtr
    176176FindCachedFontPattern (FontPatternCachePtr cache,
    177                        char *pattern,
     177                       const char *pattern,
    178178                       int patlen)
    179179{
    180180    int                         hash;