HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #261

Ticket #261: fontconfig-2.8.0.patch

File fontconfig-2.8.0.patch, 1.8 KB (added by mloar, 4 years ago)
  • fontconfig-2.8.

    old new  
    150150/* Can use #warning in C files */ 
    151151#undef HAVE_WARNING_CPP_DIRECTIVE 
    152152 
     153/* Compiling for Haiku */ 
     154#undef HAIKU 
     155 
    153156/* Use xmlparse.h instead of expat.h */ 
    154157#undef HAVE_XMLPARSE_H 
    155158 
  • fontconfig-2.8.

    old new  
    7171case "$host" in 
    7272  *-*-mingw*) 
    7373    os_win32=yes 
     74    os_haiku=no 
     75    ;; 
     76  *-*-haiku*) 
     77    os_win32=no 
     78    os_haiku=yes 
    7479    ;; 
    7580  *) 
    7681    os_win32=no 
     82    os_haiku=no 
    7783esac 
    7884AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes") 
    7985 
    … …  
    8288fi 
    8389AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes) 
    8490 
     91if test "$os_haiku" = "yes"; then 
     92  AC_DEFINE(HAIKU) 
     93fi 
     94 
    8595WARN_CFLAGS="" 
    8696if test "x$GCC" = "xyes"; then 
    8797        WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \ 
  • src/fcatomic.c

    old new  
    104104    int         ret; 
    105105    struct stat lck_stat; 
    106106 
    107 #ifdef HAVE_LINK 
     107#if defined (HAVE_LINK) && !defined (HAIKU) 
    108108    strcpy ((char *) atomic->tmp, (char *) atomic->file); 
    109109    strcat ((char *) atomic->tmp, TMP_NAME); 
    110110    fd = mkstemp ((char *) atomic->tmp); 
    … …  
    147147            time_t  now = time (0); 
    148148            if ((long int) (now - lck_stat.st_mtime) > 10 * 60) 
    149149            { 
    150 #ifdef HAVE_LINK 
     150#if defined (HAVE_LINK) && !defined (HAIKU) 
    151151                if (unlink ((char *) atomic->lck) == 0) 
    152152                    return FcAtomicLock (atomic); 
    153153#else 
    … …  
    194194void 
    195195FcAtomicUnlock (FcAtomic *atomic) 
    196196{ 
    197 #ifdef HAVE_LINK 
     197#if defined (HAVE_LINK) && !defined (HAIKU) 
    198198    unlink ((char *) atomic->lck); 
    199199#else 
    200200    rmdir ((char *) atomic->lck); 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/