From: maximilian attems <max@stro.at>
To: linux-raid@vger.kernel.org
Cc: Neil Brown <neilb@suse.de>, maximilian attems <max@stro.at>
Subject: [PATCH] [mdadm] Add klibc support to mdadm.h
Date: Fri, 21 Sep 2007 19:32:17 +0200 [thread overview]
Message-ID: <11903959391007-git-send-email-max@stro.at> (raw)
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>
---
mdadm.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/mdadm.h b/mdadm.h
index ac7d4b4..dba09f0 100644
--- a/mdadm.h
+++ b/mdadm.h
@@ -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
--
1.5.2.4
next reply other threads:[~2007-09-21 17:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-21 17:32 maximilian attems [this message]
2007-09-21 17:32 ` [PATCH] [mdadm] config.c include dirent.h instead sys/dir.h maximilian attems
2007-09-21 17:32 ` [PATCH] [mdadm] Create.c s/major/major_num/ maximilian attems
2007-09-24 3:22 ` [PATCH] [mdadm] Add klibc support to mdadm.h Neil Brown
2007-10-03 1:50 ` H. Peter Anvin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11903959391007-git-send-email-max@stro.at \
--to=max@stro.at \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.