This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

darwin & socklen_t


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]