This file is part of MXE. See index.html for further information. diff -ur fontconfig-2.10.91.orig/configure.ac fontconfig-2.10.91/configure.ac --- fontconfig-2.10.91.orig/configure.ac 2013-01-10 19:57:12.000000000 +1100 +++ fontconfig-2.10.91/configure.ac 2013-01-13 14:40:45.000000000 +1100 @@ -141,7 +141,7 @@ # Checks for library functions. AC_FUNC_VPRINTF AC_FUNC_MMAP -AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp mkostemp _mktemp_s strchr strrchr strtol getopt getopt_long sysconf ftruncate chsize rand random lrand48 random_r rand_r regcomp regerror regexec regfree fstatvfs fstatfs lstat]) +AC_CHECK_FUNCS([geteuid getuid link memmove memset mkstemp mkostemp _mktemp strchr strrchr strtol getopt getopt_long sysconf ftruncate chsize rand random lrand48 random_r rand_r regcomp regerror regexec regfree fstatvfs fstatfs lstat]) dnl AC_CHECK_FUNCS doesn't check for header files. dnl posix_fadvise() may be not available in older libc. diff -ur fontconfig-2.10.91.orig/src/fccompat.c fontconfig-2.10.91/src/fccompat.c --- fontconfig-2.10.91.orig/src/fccompat.c 2013-01-08 18:21:19.000000000 +1100 +++ fontconfig-2.10.91/src/fccompat.c 2013-01-13 14:41:13.000000000 +1100 @@ -95,8 +95,8 @@ fcntl(fd, F_SETFD, fcntl(fd, F_GETFD) | FD_CLOEXEC); } # endif -#elif HAVE__MKTEMP_S - if (_mktemp_s(template, strlen(template) + 1) != 0) +#elif HAVE__MKTEMP + if (_mktemp(template) != 0) return -1; fd = FcOpen(template, O_RDWR | O_EXCL | O_CREAT, 0600); #else