Module: xenomai-gch
Branch: for-2.4
Commit: 4121a58ac351375e1a95d65d16ca3dd281ab2e8b
URL:    
http://git.xenomai.org/?p=xenomai-gch.git;a=commit;h=4121a58ac351375e1a95d65d16ca3dd281ab2e8b

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

posix: conditionally compile in wrappers to shm_open/unlink

---

 src/skins/posix/wrappers.c |    4 ++++
 1 file changed, 4 insertions(+)

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@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to