| 1 | diff -u -r ../coreutils-8.23/src/shred.c ./src/shred.c |
| 2 | --- ../coreutils-8.23/src/shred.c 2014-07-11 13:00:07.000000000 +0200 |
| 3 | +++ ./src/shred.c 2014-07-29 15:26:23.000000000 +0200 |
| 4 | @@ -80,7 +80,7 @@ |
| 5 | #include <assert.h> |
| 6 | #include <setjmp.h> |
| 7 | #include <sys/types.h> |
| 8 | -#ifdef __linux__ |
| 9 | +#if defined(__linux__) && !defined(__ANDROID__) |
| 10 | # include <sys/mtio.h> |
| 11 | #endif |
| 12 | |
| 13 | @@ -388,7 +388,7 @@ |
| 14 | { |
| 15 | if (S_ISCHR (st->st_mode)) |
| 16 | { |
| 17 | -#ifdef __linux__ |
| 18 | +#if defined(__linux__) && !defined(__ANDROID__) |
| 19 | /* In the Linux kernel, lseek does not work on tape devices; it |
| 20 | returns a randomish value instead. Try the low-level tape |
| 21 | rewind operation first. */ |