aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/e2fsprogs/files/llseek-uclibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/e2fsprogs/files/llseek-uclibc.patch')
-rw-r--r--recipes/e2fsprogs/files/llseek-uclibc.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes/e2fsprogs/files/llseek-uclibc.patch b/recipes/e2fsprogs/files/llseek-uclibc.patch
new file mode 100644
index 0000000000..026db2a47d
--- /dev/null
+++ b/recipes/e2fsprogs/files/llseek-uclibc.patch
@@ -0,0 +1,24 @@
+diff -ur e2fsprogs-1.41.9.orig/lib/blkid/llseek.c e2fsprogs-1.41.9/lib/blkid/llseek.c
+--- e2fsprogs-1.41.9.orig/lib/blkid/llseek.c 2009-08-13 11:09:57.000000000 +0930
++++ e2fsprogs-1.41.9/lib/blkid/llseek.c 2010-12-01 13:23:48.000000000 +1030
+@@ -28,7 +28,7 @@
+
+ #include "blkidP.h"
+
+-#ifdef __linux__
++#if defined(__linux__) && !(defined(__UCLIBC__) && !defined(__USE_FILE_OFFSET64))
+
+ #if defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE)
+
+diff -ur e2fsprogs-1.41.9.orig/lib/ext2fs/llseek.c e2fsprogs-1.41.9/lib/ext2fs/llseek.c
+--- e2fsprogs-1.41.9.orig/lib/ext2fs/llseek.c 2009-08-13 11:09:57.000000000 +0930
++++ e2fsprogs-1.41.9/lib/ext2fs/llseek.c 2010-12-01 13:18:26.000000000 +1030
+@@ -28,7 +28,7 @@
+ #include "et/com_err.h"
+ #include "ext2fs/ext2_io.h"
+
+-#ifdef __linux__
++#if defined(__linux__) && !(defined(__UCLIBC__) && !defined(__USE_FILE_OFFSET64))
+
+ #if defined(HAVE_LSEEK64) && defined(HAVE_LSEEK64_PROTOTYPE)
+