pkgsrc/fonts/fontconfig/patches/patch-test_test-migration.c
ryoon 315fb89d15 Fix build under SCO OpenServer 5.0.7/3.2.
It seems that SCO OSR5 does not provide scandir(3), provide custom scandir().
2014-07-15 14:48:34 +00:00

15 lines
507 B
C

$NetBSD: patch-test_test-migration.c,v 1.4 2014/07/15 14:48:34 ryoon Exp $
--- test/test-migration.c.orig 2014-01-20 08:14:21.000000000 +0000
+++ test/test-migration.c
@@ -153,8 +153,10 @@ main(void)
strcpy (xdg, tmp);
strcpy (&xdg[len], "/.config");
+#if !defined(_SCO_DS) /* SCO OpenServer 5.0.7/3.2 has no setenv. */
setenv ("HOME", tmp, 1);
setenv ("XDG_CONFIG_HOME", xdg, 1);
+#endif
xlen = strlen (xdg);
strcpy (confd, xdg);
strcpy (&confd[xlen], "/fontconfig");