darwin & socklen_t

Andreas Tobler toa@pop.agri.ch
Mon Nov 25 10:37:00 GMT 2002


Hi,

here on darwin I encounter some build problems with socklen_t. Recently 
introduced in include/posix.h

On darwin it is defined ?!? like this:
#ifdef  _BSD_SOCKLEN_T_
typedef _BSD_SOCKLEN_T_ socklen_t;
#undef  _BSD_SOCKLEN_T_
#endif

No other reference.

First I fail when building prims.cc, a
#ifndef HAVE_SOCKLEN_T
#define socklen_t int
#endif
in include/posix.h does help until I build natPlainDatagramSocketImpl.cc 
where it complains about  redeclaration.

I feel a bit weak since it depends on 'system' headers where I don't 
know what to do or to expect.

Any ideas? From Apple?

Thanks,
Andreas



More information about the Java-patches mailing list