This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
posix fix
- From: Bart Veer <bartv at ecoscentric dot com>
- To: ecos-patches at sources dot redhat dot com
- Date: Thu, 13 Mar 2003 16:17:42 +0000 (GMT)
- Subject: posix fix
This patch relates to a recent ecos-discuss posting, a build failure
if CYGPKG_POSIX_SIGNALS is disabled. However I am not sure it is
correct, there may be strange side effects, so I have not committed it
yet. Nick, are you happy with this?
Bart
2003-03-13 Bart Veer <bartv at ecoscentric dot com>
* include/export.h: Only export signal-related functions if
CYGPKG_POSIX_SIGNALS is enabled.
Index: export.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/compat/posix/current/include/export.h,v
retrieving revision 1.4
diff -u -u -r1.4 export.h
--- export.h 11 Nov 2002 23:57:47 -0000 1.4
+++ export.h 13 Mar 2003 16:11:59 -0000
@@ -97,6 +97,7 @@
// manipulate the current threads signal mask. they are currently only
// used in the implementation of cyg_pselect() in the FILEIO package.
+#ifdef CYGPKG_POSIX_SIGNALS
__externC void cyg_pthread_sigmask_set (const sigset_t *set, sigset_t *oset);
__externC cyg_bool cyg_posix_sigpending(void);
__externC void cyg_posix_deliver_signals(const sigset_t *mask);
@@ -106,6 +107,7 @@
#define CYG_POSIX_SIGPENDING() cyg_posix_sigpending()
#define CYG_POSIX_DELIVER_SIGNALS cyg_posix_deliver_signals
+#endif
//-----------------------------------------------------------------------------
#endif // ifndef CYGONCE_POSIX_EXPORT_H