linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / glib / darwin-compilation.patch
blobf215eef798af9b10fb3b04c27512dcb5d835c8d3
1 Fix compilation on Mac OS X with gcc 4.8.
3 diff -ru glib-2.40.0-orig/gio/gdummyfile.c glib-2.40.0/gio/gdummyfile.c
4 --- glib-2.40.0-orig/gio/gdummyfile.c 2014-02-03 18:40:41.000000000 +0100
5 +++ glib-2.40.0/gio/gdummyfile.c 2014-07-15 10:58:31.000000000 +0200
6 @@ -454,7 +454,8 @@
7 result = g_malloc (escaped_string_end - escaped_string + 1);
9 out = result;
10 - for (in = escaped_string; in < escaped_string_end; in++)
11 + in = escaped_string;
12 + for (; in < escaped_string_end; in++)
14 character = *in;
15 if (*in == '%')
16 @@ -551,6 +552,7 @@
18 decoded->scheme = g_malloc (p - uri);
19 out = decoded->scheme;
20 - for (in = uri; in < p - 1; in++)
21 + in = uri;
22 + for (; in < p - 1; in++)
23 *out++ = g_ascii_tolower (*in);
24 *out = 0;