[BACK]Return to patch-test_test-migration.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / fonts / fontconfig / patches

File: [cvs.NetBSD.org] / pkgsrc / fonts / fontconfig / patches / patch-test_test-migration.c (download)

Revision 1.4, Tue Jul 15 14:48:34 2014 UTC (7 years, 4 months ago) by ryoon
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, HEAD
Changes since 1.3: +11 -67 lines

Fix build under SCO OpenServer 5.0.7/3.2.
It seems that SCO OSR5 does not provide scandir(3), provide custom scandir().

$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");