termux-packages/packages/coreutils/dd_sys_mtios_h.patch

16 lines
370 B
Diff

diff -u -r ../coreutils-8.22/src/dd.c ./src/dd.c
--- ../coreutils-8.22/src/dd.c 2013-12-04 15:48:30.000000000 +0100
+++ ./src/dd.c 2014-02-07 01:21:03.000000000 +0100
@@ -1551,7 +1551,11 @@
#ifdef __linux__
+#ifdef __ANDROID__
+# include <linux/mtio.h>
+#else
# include <sys/mtio.h>
+#endif
# define MT_SAME_POSITION(P, Q) \
((P).mt_resid == (Q).mt_resid \