pick: Update from 2.0.1 to 2.0.2
[termux-packages] / packages / notmuch / notmuch-config.c.patch
1 diff -u -r ../notmuch-0.24.1/notmuch-config.c ./notmuch-config.c
2 --- ../notmuch-0.24.1/notmuch-config.c 2017-04-01 14:29:38.000000000 +0200
3 +++ ./notmuch-config.c 2017-04-07 01:01:21.205661688 +0200
4 @@ -157,6 +157,8 @@
5 pw_buf = talloc_zero_size(ctx, pw_buf_size);
6 }
7
8 +#if !defined(__ANDROID__) || defined(__LP64__)
9 + /* Only 64-bit Android has the pw_gecos field. */
10 if (e == 0) {
11 char *comma = strchr (passwd.pw_gecos, ',');
12 if (comma)
13 @@ -167,6 +169,9 @@
14 } else {
15 name = talloc_strdup (ctx, "");
16 }
17 +#else
18 + name = talloc_strdup (ctx, "");
19 +#endif
20
21 talloc_free (pw_buf);
22