Module: xenomai-head
Branch: master
Commit: 78d5a5eb4da669ef6bdcf7eabc6e0968b7505ade
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=78d5a5eb4da669ef6bdcf7eabc6e0968b7505ade

Author: Hagen Langbartels <hagen.langbart...@sieb-meyer.de>
Date:   Tue Dec 29 19:34:09 2009 +0100

posix: conditionally compile in wrappers to shm_open/unlink

---

 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 edac7ee..77c1d59 100644
--- a/src/skins/posix/wrappers.c
+++ b/src/skins/posix/wrappers.c
@@ -245,17 +245,21 @@ int __real_shutdown(int fd, int how)
 }
 
 /* shm */
+#ifdef HAVE_SHM_OPEN
 __attribute__ ((weak))
 int __real_shm_open(const char *name, int oflag, mode_t mode)
 {
        return shm_open(name, oflag, mode);
 }
+#endif
 
+#ifdef HAVE_SHM_UNLINK
 __attribute__ ((weak))
 int __real_shm_unlink(const char *name)
 {
        return shm_unlink(name);
 }
+#endif
 
 __attribute__ ((weak))
 int __real_ftruncate(int fildes, long length)


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

Reply via email to