- make it compile if LFS was turned off
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 17 Apr 2007 15:48:09 +0000 (15:48 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 17 Apr 2007 15:48:09 +0000 (15:48 -0000)
package/mdadm/mdadm-2.6.1-002.uclibc-not-lfs-fixup.patch [new file with mode: 0644]

diff --git a/package/mdadm/mdadm-2.6.1-002.uclibc-not-lfs-fixup.patch b/package/mdadm/mdadm-2.6.1-002.uclibc-not-lfs-fixup.patch
new file mode 100644 (file)
index 0000000..6c88bc9
--- /dev/null
@@ -0,0 +1,13 @@
+diff -rdup mdadm-2.6.1-001/mdadm.h mdadm-2.6.1/mdadm.h
+--- mdadm-2.6.1-001/mdadm.h    2007-04-17 17:41:04.000000000 +0200
++++ mdadm-2.6.1/mdadm.h        2007-04-17 17:38:43.000000000 +0200
+@@ -388,6 +388,9 @@ struct stat64;
+ #  undef HAVE_FTW
+ #  undef HAVE_NFTW
+ # endif
++# ifndef __UCLIBC_HAS_LFS__
++#  define lseek64 lseek
++# endif
+ #endif
+ #ifdef __dietlibc__