diff --git a/vvp/permaheap.h b/vvp/permaheap.h index 0a0c1bcac..3b1b40a28 100644 --- a/vvp/permaheap.h +++ b/vvp/permaheap.h @@ -19,7 +19,12 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ -# include +// The SunPro C++ compiler is broken and does not define size_t in cstddef. +#ifdef __SUNPRO_CC +# include +#else +# include +#endif class permaheap { diff --git a/vvp/statistics.h b/vvp/statistics.h index 7183d0210..9f3c15360 100644 --- a/vvp/statistics.h +++ b/vvp/statistics.h @@ -19,7 +19,12 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ +// The SunPro C++ compiler is broken and does not define size_t in cstddef. +#ifdef __SUNPRO_CC +# include +#else # include +#endif extern unsigned long count_opcodes; extern unsigned long count_functors;