File: fontconfig.patch

package info (click to toggle)
graphviz 2.38.0-17
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 80,692 kB
  • ctags: 27,194
  • sloc: ansic: 1,038,718; sh: 14,765; cpp: 11,377; makefile: 4,480; yacc: 3,339; xml: 2,466; tcl: 1,950; cs: 1,890; objc: 1,157; perl: 422; lex: 375; awk: 241; python: 45; ruby: 41; php: 26
file content (36 lines) | stat: -rw-r--r-- 1,088 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
diff -ru fontconfig-2.6.0/fc-arch/fc-arch.c fontconfig-2.6.0.patched/fc-arch/fc-arch.c
--- fontconfig-2.6.0/fc-arch/fc-arch.c	2006-09-04 06:37:14.000000000 +0800
+++ fontconfig-2.6.0.patched/fc-arch/fc-arch.c	2009-02-19 10:48:05.000000000 +0900
@@ -92,6 +92,20 @@
     
     if (strcmp (arch, "auto") == 0)
     {
+#if defined(__APPLE__) && defined(__MACH__)
+	printf(
+		"#if defined(__ppc__)\n"
+		"#define FC_ARCHITECTURE \"ppc\"\n"
+		"#elif defined(__ppc64__)\n"
+		"#define FC_ARCHITECTURE \"ppc64\"\n"
+		"#elif defined(__i386__)\n"
+		"#define FC_ARCHITECTURE \"x86\"\n"
+		"#elif defined(__x86_64__)\n"
+		"#define FC_ARCHITECTURE \"x86-64\"\n"
+		"#endif\n");
+	fflush (stdout);
+	exit (ferror (stdout));
+#endif
 	arch = NULL;
 	/*
 	 * Search for signature
diff -ru fontconfig-2.6.0/src/fcdbg.c fontconfig-2.6.0.patched/src/fcdbg.c
--- fontconfig-2.6.0/src/fcdbg.c	2006-09-05 16:56:47.000000000 +0800
+++ fontconfig-2.6.0.patched/src/fcdbg.c	2009-02-19 21:35:23.000000000 +0900
@@ -396,7 +396,7 @@
     }
 }
 
-int FcDebugVal;
+int FcDebugVal = 0;
 
 void
 FcInitDebug (void)