This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
darwin & socklen_t
- From: Andreas Tobler <toa at pop dot agri dot ch>
- To: Michael Koch <konqueror at gmx dot de>, java-patches <java-patches at gcc dot gnu dot org>,Stan Shebs <shebs at apple dot com>
- Date: Mon, 25 Nov 2002 19:37:27 +0100
- Subject: 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