I think socklen_t is posix. The line of code you speak of is guarded with an ifdef set by a trycompile. It shouldn't be defined if you're using Visual Studio as far as I can tell.<div><br></div><div><div>#if defined(VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T)</div>
<div> socklen_t sizebuf = sizeof(sockinfo);</div><div>#else</div><br><div class="gmail_quote">On Mon, Sep 6, 2010 at 2:32 PM, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com" target="_blank">bill.lorensen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Seems like that should be in some system include file. It's dangerous<br>
to assume a particular atomic type. The correct fix is to find where<br>
it is defined on that system and #include the proper file, maybe with<br>
#if system guards.<br>
<br>
Bill<br>
<div><div></div><div><br>
On Mon, Sep 6, 2010 at 2:24 PM, David Doria <<a href="mailto:daviddoria%2Bvtk@gmail.com" target="_blank">daviddoria+vtk@gmail.com</a>> wrote:<br>
> When compiling on Windows Vista with Visual Studio 2008 I got a "socklen_t<br>
> is undefined" compiler error.<br>
> I added<br>
> typedef int socklen_t;<br>
> at the top of the file and then it worked. Anyone involved with vtkSocket<br>
> know if that seems like a reasonable fix?<br>
> Thanks,<br>
><br>
> David<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
><br>
><br>
><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtk-developers" target="_blank">http://www.vtk.org/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br></div>