openexr: make architecture independent
[oi-userland.git] / components / library / glib / patches / 18-pid-format.patch
blobf0dbdde3975723cceba87e0d5a59710b957b7bdf
1 diff --git a/glib/tests/mapping.c b/glib/tests/mapping.c
2 index ea3495c..996e4da 100644
3 --- a/glib/tests/mapping.c
4 +++ b/glib/tests/mapping.c
5 @@ -225,7 +225,7 @@ test_child_private (void)
6 signal (SIGUSR1, handle_usr1);
7 #endif
9 - g_snprintf (pid, sizeof(pid), "%d", getpid ());
10 + g_snprintf (pid, sizeof(pid), "%ld", (long) getpid ());
11 child_argv[0] = local_argv[0];
12 child_argv[1] = "mapchild";
13 child_argv[2] = pid;