Hello,

Index: mono/metadata/threadpool.c
===================================================================
--- mono/metadata/threadpool.c  (revision 123169)
+++ mono/metadata/threadpool.c  (working copy)
@@ -40,6 +40,9 @@
 #include <unistd.h>
 #endif
 #include <string.h>
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
 
 #include <mono/utils/mono-poll.h>
 #ifdef HAVE_EPOLL

This patch fix following problem.

In FreeBSD7, mono trunk cannot build. Error message is

> $ gmake
> gmake  all-recursive
> gmake[1]: Entering directory `/export/home/ksmakoto/Mono/mono'
> Making all in po
> gmake[2]: Entering directory `/export/home/ksmakoto/Mono/mono/po'
(snip)
> Making all in cil
> gmake[3]: Entering directory `/export/home/ksmakoto/Mono/mono/mono/cil'
> gmake[3]: Nothing to be done for `all'.
> gmake[3]: Leaving directory `/export/home/ksmakoto/Mono/mono/mono/cil'
> Making all in metadata
> gmake[3]: Entering directory `/export/home/ksmakoto/Mono/mono/mono/metadata'
> ../../doltcompile gcc -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../mono 
> -I../../libgc/include -D_REENTRANT -I/usr/local/include/glib-2.0 
> -I/usr/local/lib/glib-2.0/include   -DMONO_BINDIR=\"/usr/local/bin/\" 
> -DMONO_ASSEMBLIES=\"/usr/local/lib\" -DMONO_CFG_DIR=\"/usr/local/etc\"  
> -DGC_FREEBSD_THREADS -DPLATFORM_BSD   -g -O2 -fno-strict-aliasing 
> -Wdeclaration-after-statement -g -Wall -Wunused -Wmissing-prototypes 
> -Wmissing-declarations -Wstrict-prototypes  -Wmissing-prototypes 
> -Wnested-externs -Wpointer-arith -Wno-cast-qual -Wcast-align -Wwrite-strings 
> -mno-tls-direct-seg-refs -MT threadpool.lo -MD -MP -MF .deps/threadpool.Tpo 
> -c -o threadpool.lo threadpool.c
> In file included from threadpool.c:49:
> ../../mono/io-layer/socket-wrappers.h:44: error: expected declaration 
> specifiers or '...' > before 'socklen_t'
> ../../mono/io-layer/socket-wrappers.h:44: warning: 'struct sockaddr' declared 
> inside parameter list
> ../../mono/io-layer/socket-wrappers.h:44: warning: its scope is only this 
> definition or declaration, which is probably not what you want
> ../../mono/io-layer/socket-wrappers.h:46: error: expected declaration 
> specifiers or '...' before 'socklen_t'
> ../../mono/io-layer/socket-wrappers.h:46: warning: 'struct sockaddr' declared 
> inside parameter list
(snip)
> gmake[3]: *** [threadpool.lo] Error 1
> gmake[3]: Leaving directory `/export/home/ksmakoto/Mono/mono/mono/metadata'
> gmake[2]: *** [all-recursive] Error 1
> gmake[2]: Leaving directory `/export/home/ksmakoto/Mono/mono/mono'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory `/export/home/ksmakoto/Mono/mono'
> gmake: *** [all] Error 2
_______________________________________________
Mono-devel-list mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to