diff options
author | Richard van Paasen <rvpaasen@t3i.nl> | 2009-12-14 22:56:10 +0100 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-03-22 23:57:34 +0100 |
commit | 0c77612469da47052a720b17cf576ba880478961 (patch) | |
tree | 2d6e9aecd21d90122f838e87525bfcd3f2e94b36 /package/mdadm/mdadm-2.6.9-001.uclibc-dont-force-largefile.patch | |
parent | a038602e8239bed895644bb0266542ae10ba8e69 (diff) |
mdadm: update to 2.6.9
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>
Diffstat (limited to 'package/mdadm/mdadm-2.6.9-001.uclibc-dont-force-largefile.patch')
-rw-r--r-- | package/mdadm/mdadm-2.6.9-001.uclibc-dont-force-largefile.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/package/mdadm/mdadm-2.6.9-001.uclibc-dont-force-largefile.patch b/package/mdadm/mdadm-2.6.9-001.uclibc-dont-force-largefile.patch new file mode 100644 index 000000000..c671437d2 --- /dev/null +++ b/package/mdadm/mdadm-2.6.9-001.uclibc-dont-force-largefile.patch @@ -0,0 +1,27 @@ +[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)); |