2009-10-03 13:43:00 +02:00
|
|
|
[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(+)
|
|
|
|
|
2013-03-07 01:21:05 +01:00
|
|
|
Index: mdadm-3.2.6/mdadm.h
|
2009-10-03 13:43:00 +02:00
|
|
|
===================================================================
|
2013-03-07 01:21:05 +01:00
|
|
|
--- mdadm-3.2.6.orig/mdadm.h
|
|
|
|
+++ mdadm-3.2.6/mdadm.h
|
|
|
|
@@ -23,7 +23,11 @@
|
2009-10-03 13:43:00 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#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));
|