Re: [reSIProcate] tarball 0.9.0-4631
Hi Alan,
for me it compiles also under 10.3 with your patch. Any idea for which OS
version this define would still be required?
NO
On Saturday 14 May 2005 19:45, Alan Hawrylyshen wrote:
> On May 14, 2005, at 10.00, Nils Ohlmeier wrote:
> > Just want to let you know that the popt detection on MacOSX in this
> > tarball is
> > broken for me (it detects a popt.h which is not present). I'll try
> > to fix it.
> >
> > NO
>
> Additionally, under Tiger (10.4) the compat definition of socklen_t
> conflicts with the OS built-in.
> Can someone with 10.3 verify that you can still build after applying
> this patch?
>
> This patch (against 0.9.0-4631) is needed to compile cleanly on Mac
> OS/X 10.4. The popt problem nils describes above is present, but can
> be worked around by specifying flags to ./configure (CPPFLAGS=-I/sw
> LIBS=-L/sw) which works if you have popt from fink. Would be better
> if it auto-did all that because some people won't have fink and popt.
>
>
> Mind you -- I can even make the patch better by only triggering when
> it's gcc 4.0 on apple, but that's not really what I want.
> We can define NEED_SOCKLEN_T to twig on either the OS or the
> existance of socklen_t ... etc.
>
> Looking much better though.
>
> A
>
>
> Patch:
>
> diff -rwup orig/resiprocate-0.9.0-4631/resiprocate/os/Socket.hxx
> resiprocate-0.9.0-4631/resiprocate/os/Socket.hxx
> --- orig/resiprocate-0.9.0-4631/resiprocate/os/Socket.hxx
> 2005-05-12 21:25:54.000000000 -0600
> +++ resiprocate-0.9.0-4631/resiprocate/os/Socket.hxx 2005-05-13
> 17:04:33.000000000 -0600
> @@ -59,7 +59,7 @@ inline int getErrno() { return WSAGetLas
> #else
> #ifdef __APPLE__
> -typedef int socklen_t;
> +//typedef int socklen_t;
> #endif
> #define WSANOTINITIALISED EPROTONOSUPPORT