Module: xenomai-2.4 Branch: master Commit: 4121a58ac351375e1a95d65d16ca3dd281ab2e8b URL: http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=4121a58ac351375e1a95d65d16ca3dd281ab2e8b
Author: Hagen Langbartels <[email protected]> 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 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 [email protected] https://mail.gna.org/listinfo/xenomai-git
