aboutsummaryrefslogtreecommitdiff
path: root/fontconfig/src
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2013-01-24 08:40:35 +0100
committermarha <marha@users.sourceforge.net>2013-01-24 08:40:35 +0100
commit3e3af07f7697e9d23dd62fcf8f3a055602ae3341 (patch)
tree9ad4b80b0c4df6e2dae13cde8d248a72273f9aae /fontconfig/src
parent7002c66cfba01e7d3b88dae498a195f78f0e83f5 (diff)
parent06872e284da1c00ce03b234ca24aefeac64990d2 (diff)
downloadvcxsrv-3e3af07f7697e9d23dd62fcf8f3a055602ae3341.tar.gz
vcxsrv-3e3af07f7697e9d23dd62fcf8f3a055602ae3341.tar.bz2
vcxsrv-3e3af07f7697e9d23dd62fcf8f3a055602ae3341.zip
Merge remote-tracking branch 'origin/released'
* origin/released: fontconfig mesa pixman xkbcomp xserver git update 24 jan 2013 Conflicts: mesalib/src/glsl/.gitignore
Diffstat (limited to 'fontconfig/src')
-rw-r--r--fontconfig/src/fccompat.c6
-rw-r--r--fontconfig/src/fcdefault.c5
2 files changed, 4 insertions, 7 deletions
diff --git a/fontconfig/src/fccompat.c b/fontconfig/src/fccompat.c
index 0a9c135fe..a2171607c 100644
--- a/fontconfig/src/fccompat.c
+++ b/fontconfig/src/fccompat.c
@@ -160,12 +160,6 @@ FcMakeTempfile (char *template)
if (_mktemp_s(template, strlen(template) + 1) != 0)
return -1;
fd = FcOpen(template, O_RDWR | O_EXCL | O_CREAT, 0600);
-#else
- /* warn at the runtime for just debugging purpose why something may
- * goes wrong. mingw may not have one, but it shouldn't be reached since
- * this function isn't used so far.
- */
- fprintf(stderr, "Fontconfig warning: No secure functions to create a temporary file\n");
#endif
return fd;
diff --git a/fontconfig/src/fcdefault.c b/fontconfig/src/fcdefault.c
index d1217a4dc..d1b917fd9 100644
--- a/fontconfig/src/fcdefault.c
+++ b/fontconfig/src/fcdefault.c
@@ -147,6 +147,9 @@ retry:
else
prgname = FcStrdup ("");
#else
+# if defined (HAVE_GETEXECNAME)
+ const char *p = getexecname ();
+# else
char buf[PATH_MAX + 1];
int len;
char *p = NULL;
@@ -157,7 +160,7 @@ retry:
buf[len] = '\0';
p = buf;
}
-
+# endif
if (p)
{
char *r = strrchr (p, '/');