]> git.pld-linux.org Git - packages/crossmingw32-fontconfig.git/blob - fontconfig-mkstemp.patch
58c2b8a012b4269fe03c1b9514b30a4b63c6bec0
[packages/crossmingw32-fontconfig.git] / fontconfig-mkstemp.patch
1 From dffb69ed8c7cf2e707bc692f94b51108b772d9d8 Mon Sep 17 00:00:00 2001
2 From: Akira TAGOH <akira@tagoh.org>
3 Date: Tue, 15 Jan 2013 08:26:27 +0000
4 Subject: Fix the build fail on MinGW
5
6 Reported at http://lists.freedesktop.org/archives/fontconfig/2013-January/004601.html
7
8 just warn at the runtime instead of the compile time. it somewhat works
9 on even MinGW since FcMakeTempfile() isn't used on Win32 so far.
10 ---
11 diff --git a/src/fccompat.c b/src/fccompat.c
12 index 169cab9..2aa29dd 100644
13 --- a/src/fccompat.c
14 +++ b/src/fccompat.c
15 @@ -100,7 +100,11 @@ FcMakeTempfile (char *template)
16         return -1;
17     fd = FcOpen(template, O_RDWR | O_EXCL | O_CREAT, 0600);
18  #else
19 -#error no secure functions to create a temporary file
20 +   /* warn at the runtime for just debugging purpose why something may
21 +    * goes wrong. mingw may not have one, but it shouldn't be reached since
22 +    * this function isn't used so far.
23 +    */
24 +   fprintf(stderr, "Fontconfig warning: No secure functions to create a temporary file\n");
25  #endif
26  
27      return fd;
28 --
29 cgit v0.9.0.2-2-gbebe
This page took 0.073641 seconds and 2 git commands to generate.