[vtk-developers] Missing typedef in vtkSocket.cxx

Dave Partyka dave.partyka at kitware.com
Mon Sep 6 14:46:24 EDT 2010


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.

#if defined(VTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T)
  socklen_t sizebuf = sizeof(sockinfo);
#else

On Mon, Sep 6, 2010 at 2:32 PM, Bill Lorensen <bill.lorensen at gmail.com>wrote:

> Seems like that should be in some system include file. It's dangerous
> to assume a particular atomic type. The correct fix is to find where
> it is defined on that system and #include the proper file, maybe with
> #if system guards.
>
> Bill
>
> On Mon, Sep 6, 2010 at 2:24 PM, David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>>
> wrote:
> > When compiling on Windows Vista with Visual Studio 2008 I got a
> "socklen_t
> > is undefined" compiler error.
> > I added
> > typedef int socklen_t;
> > at the top of the file and then it worked. Anyone involved with vtkSocket
> > know if that seems like a reasonable fix?
> > Thanks,
> >
> > David
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtk-developers
> >
> >
> >
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtk-developers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20100906/5b7626da/attachment.html>


More information about the vtk-developers mailing list