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 150 150 /* Can use #warning in C files */ 151 151 #undef HAVE_WARNING_CPP_DIRECTIVE 152 152 153 /* Compiling for Haiku */ 154 #undef HAIKU 155 153 156 /* Use xmlparse.h instead of expat.h */ 154 157 #undef HAVE_XMLPARSE_H 155 158 -
fontconfig-2.8.
old new 71 71 case "$host" in 72 72 *-*-mingw*) 73 73 os_win32=yes 74 os_haiku=no 75 ;; 76 *-*-haiku*) 77 os_win32=no 78 os_haiku=yes 74 79 ;; 75 80 *) 76 81 os_win32=no 82 os_haiku=no 77 83 esac 78 84 AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes") 79 85 … … 82 88 fi 83 89 AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes) 84 90 91 if test "$os_haiku" = "yes"; then 92 AC_DEFINE(HAIKU) 93 fi 94 85 95 WARN_CFLAGS="" 86 96 if test "x$GCC" = "xyes"; then 87 97 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \ -
src/fcatomic.c
old new 104 104 int ret; 105 105 struct stat lck_stat; 106 106 107 #if def HAVE_LINK107 #if defined (HAVE_LINK) && !defined (HAIKU) 108 108 strcpy ((char *) atomic->tmp, (char *) atomic->file); 109 109 strcat ((char *) atomic->tmp, TMP_NAME); 110 110 fd = mkstemp ((char *) atomic->tmp); … … 147 147 time_t now = time (0); 148 148 if ((long int) (now - lck_stat.st_mtime) > 10 * 60) 149 149 { 150 #if def HAVE_LINK150 #if defined (HAVE_LINK) && !defined (HAIKU) 151 151 if (unlink ((char *) atomic->lck) == 0) 152 152 return FcAtomicLock (atomic); 153 153 #else … … 194 194 void 195 195 FcAtomicUnlock (FcAtomic *atomic) 196 196 { 197 #if def HAVE_LINK197 #if defined (HAVE_LINK) && !defined (HAIKU) 198 198 unlink ((char *) atomic->lck); 199 199 #else 200 200 rmdir ((char *) atomic->lck);
