[Mono-dev] [PATCH] Don't rely on SIGIO
Andreas Färber
andreas.faerber at web.de
Sun Mar 21 18:44:46 EDT 2010
SIGIO is not part of POSIX, Haiku does not support it.
map.c contains checks to handle this, but old-map.c doesn't.
Its generator no longer exists, so let's insert the check manually.
Cc: Jonathan Pryor <jonpryor at vt.edu>
2010-03-21 Andreas Faerber <andreas.faerber at web.de>
* old-map.c: Don't rely on SIGIO being defined.
This commit is licensed under the MIT X11 license.
---
Hello,
Here's another patch towards compilation support for Haiku.
Okay to commit?
Regards,
Andreas
support/ChangeLog | 6 ++++++
support/old-map.c | 2 ++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/support/ChangeLog b/support/ChangeLog
index 1eda605..ccea340 100644
--- a/support/ChangeLog
+++ b/support/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-21 Andreas Faerber <andreas.faerber at web.de>
+
+ * old-map.c: Don't rely on SIGIO being defined.
+
+ Code is contributed under MIT/X11 license.
+
2010-02-23 Carlos Alberto Cortez <calberto.cortez at 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 bd26a67..9b2a2e9 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;
--
1.7.0.14.g7e948
More information about the Mono-devel-list
mailing list