[Mono-dev] [PATCH] Add include for fd_set

Andreas Färber andreas.faerber at web.de
Sun Mar 21 19:30:36 EDT 2010


According to POSIX, fd_set is defined in sys/select.h.

http://www.opengroup.org/onlinepubs/9699919799/basedefs/sys_select.h.html

2010-03-21  Andreas Faerber  <andreas.faerber at web.de>

	* debugger-agent.c: #include sys/select.h for fd_set.

This commit is licensed under the MIT X11 license.
---
 Hello,
 
 Okay to commit? Fixes a compilation issue on Haiku.
 
 Regards,
 Andreas
 
 mono/mini/ChangeLog        |    6 ++++++
 mono/mini/debugger-agent.c |    3 +++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/mono/mini/ChangeLog b/mono/mini/ChangeLog
index 36865de..3107a48 100755
--- a/mono/mini/ChangeLog
+++ b/mono/mini/ChangeLog
@@ -1,3 +1,9 @@
+2010-03-21  Andreas Faerber  <andreas.faerber at web.de>
+
+	* debugger-agent.c: #include sys/select.h for fd_set.
+	
+	Code is contributed under MIT/X11 license.
+
 2010-03-21  Zoltan Varga  <vargaz at gmail.com>
 
 	* mini.c (SIG_HANDLER_SIGNATURE): Fix the build on platforms without sigaction
diff --git a/mono/mini/debugger-agent.c b/mono/mini/debugger-agent.c
index 2b1567e..6bb41d9 100644
--- a/mono/mini/debugger-agent.c
+++ b/mono/mini/debugger-agent.c
@@ -14,6 +14,9 @@
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
-- 
1.7.0.14.g7e948



More information about the Mono-devel-list mailing list