termux-packages/packages/mutt/lib.c.patch
Fredrik Fornwall 9c471bdd6d mutt: Various fixes and improvements
- Fix hardlink usage which doesn't work on Android 6.
- Enable header cache and depend on gdbm.
- Specify $PREFIX/bin/sh as exec shell to avoid trying /bin/sh.
  Fixes #84.
- Avoid building bundled&broken (v)snprintf functions.
2015-12-13 21:22:39 -05:00

23 lines
450 B
Diff

diff -u -r ../mutt-1.5.24/lib.c ./lib.c
--- ../mutt-1.5.24/lib.c 2015-08-30 13:06:38.000000000 -0400
+++ ./lib.c 2015-12-13 17:05:02.546904223 -0500
@@ -445,6 +445,10 @@
int safe_rename (const char *src, const char *target)
{
+#ifdef __ANDROID__
+ /* Android (since 6.0) does not support hardlinks. */
+ return rename(src, target);
+#else
struct stat ssb, tsb;
if (!src || !target)
@@ -537,6 +541,7 @@
return 0;
+#endif
}