Created attachment 12061 [details]
When compiling mono 220.127.116.11 on 64-bit Solaris 11/x86, mono/io-layer/collection.c fails to compile due to
missing PTHREAD_STACK_MIN. Two things are necessary to fix this:
* include <limits.h>, which can be done unconditionally, and
* define __EXTENSIONS__ to enable the definition.
The latter is already handled in the patch attached to bug 31999, the former in the attached patch.