diff options
author | John Spencer <maillist-mdadm@barfooze.de> | 2013-02-02 17:37:55 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-02-10 15:40:53 +1100 |
commit | 0d35d5c480a4828aac8387f161d6ee2615a39ff7 (patch) | |
tree | bc33a52da6e86e7779d77662c92d975cc89fb2a9 /mdadm.h | |
parent | e3635eee6409f12688adf3dd36f69cb457aafc72 (diff) |
mdadm.h: fix ugly glibc specific ifdeffery
the code that was exposed on anything else than dietlibc and klibc
is entirely glibc specific and broke the build on musl libc.
Signed-off-by: John Spencer <maillist-mdadm@barfooze.de>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.h')
-rw-r--r-- | mdadm.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,9 +25,9 @@ #define _GNU_SOURCE #define _FILE_OFFSET_BITS 64 #include <unistd.h> -#if !defined(__dietlibc__) && !defined(__KLIBC__) +#ifdef __GLIBC__ extern __off64_t lseek64 __P ((int __fd, __off64_t __offset, int __whence)); -#else +#elif !defined(lseek64) # if defined(__NO_STAT64) || __WORDSIZE != 32 # define lseek64 lseek # endif |