diff options
author | maximilian attems <max@stro.at> | 2007-09-21 19:32:17 +0200 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2007-09-24 13:21:38 +1000 |
commit | e39b673e4892ef0085a8e59eee89d42e6191a688 (patch) | |
tree | 513db878bf7e138c633090d4955b922b05c6437e /mdadm.h | |
parent | 4d20d744cbf74a4e7d5c42688105683157074f7c (diff) | |
download | mdadm-e39b673e4892ef0085a8e59eee89d42e6191a688.tar.gz mdadm-e39b673e4892ef0085a8e59eee89d42e6191a688.tar.xz mdadm-e39b673e4892ef0085a8e59eee89d42e6191a688.zip |
Add klibc support to mdadm.h
klibc still misses a lot functionality to let mdadm link against,
this small step helps to get to the real trouble.. :)
Signed-off-by: maximilian attems <max@stro.at>
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -29,7 +29,7 @@ #define _GNU_SOURCE #include <unistd.h> -#ifndef __dietlibc__ +#if !defined(__dietlibc__) && !defined(__KLIBC__) extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence)); #else # if defined(__NO_STAT64) || __WORDSIZE != 32 @@ -97,6 +97,7 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence)); ((x) & 0x00000000ff000000ULL) << 8 | \ ((x) & 0x000000ff00000000ULL) >> 8) +#if !defined(__KLIBC__) #if BYTE_ORDER == LITTLE_ENDIAN #define __cpu_to_le16(_x) (_x) #define __cpu_to_le32(_x) (_x) @@ -114,6 +115,7 @@ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence)); #else # error "unknown endianness." #endif +#endif /* __KLIBC__ */ @@ -398,6 +400,11 @@ struct stat64; # undef HAVE_NFTW #endif +#if defined(__KLIBC__) +# undef HAVE_NFTW +# undef HAVE_FTW +#endif + #ifndef HAVE_NFTW # define FTW_PHYS 1 # ifndef HAVE_FTW |