Skip to content
Browse files

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
  • Loading branch information...
1 parent 3f26a90 commit 5640cf3fc706be8cd8bb41d8a546adedd45b9d8b @afaerber afaerber committed Mar 23, 2010
Showing with 9 additions and 0 deletions.
  1. +7 −0 support/ChangeLog
  2. +2 −0 support/old-map.c
View
7 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
View
2 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;

0 comments on commit 5640cf3

Please sign in to comment.
Something went wrong with that request. Please try again.