Module: xenomai-abe
Branch: analogy
Commit: 743dc4356879dcf5b6ee59810a6cf25fa9237cf4
URL:    
http://git.xenomai.org/?p=xenomai-abe.git;a=commit;h=743dc4356879dcf5b6ee59810a6cf25fa9237cf4

Author: Alexis Berlemont <alexis.berlem...@gmail.com>
Date:   Sun Apr  4 00:52:14 2010 +0200

posix: fix a compilation issue with gcc / uclibc

---

 src/skins/posix/wrappers.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/skins/posix/wrappers.c b/src/skins/posix/wrappers.c
index 0e7d2f1..fbbe9b0 100644
--- a/src/skins/posix/wrappers.c
+++ b/src/skins/posix/wrappers.c
@@ -277,18 +277,22 @@ void *__real_mmap(void *addr,
 
 /* 32 bits platform */
 #if LONG_MAX == 2147483647L
+#ifdef HAVE_FTRUNCATE64
 __attribute__ ((weak))
 int __real_ftruncate64(int fildes, long long length)
 {
        return ftruncate64(fildes, length);
 }
+#endif /* HAVE_HAVE_FTRUNCATE64 */
 
+#ifdef HAVE_MMAP64
 __attribute__ ((weak))
 void *__real_mmap64(void *addr,
                    size_t len, int prot, int flags, int fd, long long off)
 {
        return mmap64(addr, len, prot, flags, fd, off);
 }
+#endif /* HAVE_MMAP64 */
 #endif
 
 __attribute__ ((weak))


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to