0c77612469
Closes #805 This patch updates mdadm to 2.6.9 and uses the new makefile template. Signed-off-by: Richard van Paasen <rvpaasen@t3i.nl> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
28 lines
881 B
Diff
28 lines
881 B
Diff
[PATCH] mdadm: don't enable largefile support unconditionally on uClibc
|
|
|
|
uClibc can be compiled without largefile support (and errors out if
|
|
_FILE_OFFSET_BITS is set to 64), so don't define it if that combination
|
|
is detected.
|
|
|
|
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
|
---
|
|
mdadm.h | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
Index: mdadm-2.6.7.1/mdadm.h
|
|
===================================================================
|
|
--- mdadm-2.6.7.1.orig/mdadm.h
|
|
+++ mdadm-2.6.7.1/mdadm.h
|
|
@@ -28,7 +28,11 @@
|
|
*/
|
|
|
|
#define _GNU_SOURCE
|
|
+#include <features.h>
|
|
+/* uclibc without largefile support #errors on _FILE_OFFSET_BITS=64 */
|
|
+#if !(defined(__UCLIBC__) && !defined(__UCLIBC_HAS_LFS__))
|
|
#define _FILE_OFFSET_BITS 64
|
|
+#endif
|
|
#include <unistd.h>
|
|
#if !defined(__dietlibc__) && !defined(__KLIBC__)
|
|
extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence));
|