#if defined(_MSC_VER) || defined(__MINGW32__)
# include <time.h>
#else
+# if defined ( sgi ) && !defined( __GNUC__ )
+ // This works around a bug triggered when using MipsPro 7.4.1
+ // and (at least) IRIX 6.5.20
+# include <iostream>
+# endif
# include <sys/time.h>
#endif
+#if _MSC_VER >= 1300
+# include "winsock2.h"
+#endif
#include "SGThread.hxx"