termux-packages/packages/coreutils/dd_sys_mtios_h.patch
Fredrik Fornwall 59f0d218a6 Initial push
2015-06-13 01:03:31 +02:00

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 \