diff options
author | Andreas Färber <afaerber@mono-cvs.ximian.com> | 2010-03-23 03:19:30 +0300 |
---|---|---|
committer | Andreas Färber <afaerber@mono-cvs.ximian.com> | 2010-03-23 03:19:30 +0300 |
commit | 5640cf3fc706be8cd8bb41d8a546adedd45b9d8b (patch) | |
tree | a5749d00c26eb6f0dcb34eb7cf0327863b4c8679 /support | |
parent | 3f26a9007fa3a64725f588210b83d6832117995c (diff) |
Don't rely on SIGIO
SIGIO is not part of POSIX, and Haiku does not support it.
map.c contains checks to handle this, but old-map.c doesn't.
Its generator make-map no longer exists, so let's insert the
check manually.
2010-03-23 Andreas Faerber <andreas.faerber@web.de>
* old-map.c (map_Mono_Posix_Signals): Fix build for platforms where
SIGIO is not defined (Haiku).
This commit is licensed under the MIT X11 license.
svn path=/trunk/mono/; revision=154029
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 7 | ||||
-rw-r--r-- | support/old-map.c | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index 1eda6057a5a..dd73ac3703f 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,10 @@ +2010-03-23 Andreas Faerber <andreas.faerber@web.de> + + * old-map.c (map_Mono_Posix_Signals): Fix build for platforms where + SIGIO is not defined (Haiku). + + Code is contributed under MIT/X11 license. + 2010-02-23 Carlos Alberto Cortez <calberto.cortez@gmail.com> * serial.cs: Add 921600 to the list of possible baud rates, and diff --git a/support/old-map.c b/support/old-map.c index bd26a675c87..9b2a2e907d7 100644 --- a/support/old-map.c +++ b/support/old-map.c @@ -159,8 +159,10 @@ int map_Mono_Posix_Signals (int x) return SIGPROF; if (x == Mono_Posix_Signals_SIGWINCH) return SIGWINCH; +#ifdef SIGIO if (x == Mono_Posix_Signals_SIGIO) return SIGIO; +#endif if (x == Mono_Posix_Signals_SIGSYS) return SIGSYS; return -1; |