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.faer...@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.faer...@web.de>
+
+       * debugger-agent.c: #include sys/select.h for fd_set.
+       
+       Code is contributed under MIT/X11 license.
+
 2010-03-21  Zoltan Varga  <var...@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

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to