[Gdal-dev] Re: ECW JPEG 2000 Source SDK v3.3 (RC)

Tore Halset halset at pvv.ntnu.no
Tue Nov 8 14:19:26 EST 2005


On Oct 25, 2005, at 20:36, Garrett Potts wrote:

> To build it on MACOSX 10.4.2 g++ version 4.0.0 I had to make one  
> small change in the file:

Yes, I got the same error on OS X 10.4.3. Thanks for the fix!

  - Tore.

>
> NCSSocket.cpp
>
>
>
> CNCSSocket::CNCSSocket(const int handle)
> : m_handle(handle), m_connected(true)
> {
>     //init();
>     struct sockaddr_in info;
> #if defined(POSIX) && !defined(HPUX)
> #    ifdef MACOSX
>     socklen_t tempSize = sizeof(struct sockaddr);
>     //int tempSize = sizeof(struct sockaddr);
> #    else
>     socklen_t tempSize = sizeof(struct sockaddr);
> #    endif
> #else
>     int tempSize = sizeof(struct sockaddr);
> #endif
>     getpeername(handle, (struct sockaddr*)&info, &tempSize);
>     m_connectedPort = info.sin_port;
>     //m_connectedTo = inet_ntoa(info.sin_addr);
>
> }
> #endif
>
>
> On my MAC I had to set int tempSize = sizeof(struct sockaddr);
>
> to
>
> socklen_temt pSize = sizeof(struct sockaddr);
>
>
> Has any one else had the same problem with 10.4.2?
>
>
> This was the only modification and it built.  Not tested with GDAL  
> yet though.
>
> Take care
>
> Garrettt
> _______________________________________________
> Gdal-dev mailing list
> Gdal-dev at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/gdal-dev




More information about the Gdal-dev mailing list