From: John Spencer Date: Sat, 2 Feb 2013 16:37:55 +0000 (+0100) Subject: mdadm.h: fix ugly glibc specific ifdeffery X-Git-Tag: mdadm-3.3-rc1~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d35d5c480a4828aac8387f161d6ee2615a39ff7;p=thirdparty%2Fmdadm.git 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 Signed-off-by: NeilBrown --- diff --git a/mdadm.h b/mdadm.h index a761f298..7ffac8f9 100644 --- a/mdadm.h +++ b/mdadm.h @@ -25,9 +25,9 @@ #define _GNU_SOURCE #define _FILE_OFFSET_BITS 64 #include -#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