1 |
grobian 13/12/01 19:19:39 |
2 |
|
3 |
Added: fontconfig-2.11.0-solaris.patch |
4 |
Log: |
5 |
Fix compilation on Solaris |
6 |
|
7 |
(Portage version: 2.2.7-prefix/cvs/SunOS i386, signed Manifest commit with key 0x5F75F607C5C74E89) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 media-libs/fontconfig/files/fontconfig-2.11.0-solaris.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/files/fontconfig-2.11.0-solaris.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/fontconfig/files/fontconfig-2.11.0-solaris.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: fontconfig-2.11.0-solaris.patch |
16 |
=================================================================== |
17 |
continuation of 4a741e9a0ab8dbaa0c377fbfed41547645ac79af |
18 |
|
19 |
--- test/test-migration.c |
20 |
+++ test/test-migration.c |
21 |
@@ -33,6 +33,7 @@ |
22 |
{ |
23 |
DIR *d = opendir (dir); |
24 |
struct dirent *e; |
25 |
+ struct stat statb; |
26 |
size_t len = strlen (dir); |
27 |
char *n = NULL; |
28 |
FcBool ret = FcTrue; |
29 |
@@ -53,7 +54,13 @@ |
30 |
strcpy (n, dir); |
31 |
n[len] = '/'; |
32 |
strcpy (&n[len + 1], e->d_name); |
33 |
- if (e->d_type == DT_DIR) |
34 |
+ if (lstat (n, &statb) < 0) |
35 |
+ { |
36 |
+ fprintf (stderr, "E: %s\n", n); |
37 |
+ ret = FcFalse; |
38 |
+ break; |
39 |
+ } |
40 |
+ if (S_ISDIR(statb.st_mode)) |
41 |
{ |
42 |
if (!unlink_dirs (n)) |
43 |
{ |