notmuch: Update from 0.26.1 to 0.26.2
[termux-packages] / packages / busybox / util-linux-getopt.c.patch
1 diff -u -r ../busybox-1.25.1/util-linux/getopt.c ./util-linux/getopt.c
2 --- ../busybox-1.25.1/util-linux/getopt.c 2016-10-07 10:47:47.000000000 -0400
3 +++ ./util-linux/getopt.c 2016-11-30 17:46:48.000185295 -0500
4 @@ -358,6 +358,10 @@
5 ;
6 #endif
7
8 +#ifdef __ANDROID__
9 +extern char* __progname;
10 +#endif
11 +
12 int getopt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
13 int getopt_main(int argc, char **argv)
14 {
15 @@ -423,5 +427,8 @@
16 }
17
18 argv[n] = name ? name : argv[0];
19 +#ifdef __ANDROID__
20 + __progname = argv[n];
21 +#endif
22 return generate_output(argv + n, argc - n, optstr, long_options);
23 }