equal
deleted
inserted
replaced
|
1 gcc build fails complaining %u expects unsigned int, but getpid() returns |
|
2 pid_t -- which is an int on Solaris now (historically a long). |
|
3 |
|
4 This patch should be sent upstream. |
|
5 |
|
6 --- evince-3.16.0/libdocument/ev-file-helpers.c 2014-11-29 01:40:15.000000000 -0800 |
|
7 +++ evince-3.16.0.new/libdocument/ev-file-helpers.c 2015-07-08 13:57:33.999990934 -0700 |
|
8 @@ -88,7 +88,7 @@ |
|
9 const gchar *prgname; |
|
10 |
|
11 prgname = g_get_prgname (); |
|
12 - dirname = g_strdup_printf ("%s-%u", prgname ? prgname : "unknown", getpid ()); |
|
13 + dirname = g_strdup_printf ("%s-%u", prgname ? prgname : "unknown", (unsigned int) getpid ()); |
|
14 tmp_dir = g_build_filename (g_get_tmp_dir (), dirname, NULL); |
|
15 g_free (dirname); |
|
16 } |