libuv: Update from 1.15.0 to 1.16.1
[termux-packages] / packages / busybox / coreutils-date.c.patch
CommitLineData
8c92c864
FF
1diff -u -r ../busybox-1.26.2/coreutils/date.c ./coreutils/date.c
2--- ../busybox-1.26.2/coreutils/date.c 2016-12-10 17:46:36.000000000 +0000
3+++ ./coreutils/date.c 2017-07-06 22:15:17.528119028 +0000
4@@ -293,9 +293,14 @@
5 maybe_set_utc(opt);
6
7 /* if setting time, set it */
8+#ifdef __ANDROID__
9+ /* stime(2) is not available on Android and is not allowed anyway. */
10+ bb_error_msg("can't set date: Operation not permitted");
11+#else
12 if ((opt & OPT_SET) && stime(&ts.tv_sec) < 0) {
13 bb_perror_msg("can't set date");
14 }
15+#endif
16 }
17
18 /* Display output */