natPlainDatagramSocketImpl.cc (socklen_t): Don't define.

2002-11-26  Andreas Tobler  <a.tobler@schweiz.ch>

	* java/net/natPlainDatagramSocketImpl.cc (socklen_t): Don't
	define.
	* java/net/natPlainSocketImpl.cc (socklen_t): Don't define.
	* include/posix.h (socklen_t): Define if not already defined.

From-SVN: r59533
This commit is contained in:
Andreas Tobler 2002-11-26 21:09:28 +01:00 committed by Tom Tromey
parent 13c22933ff
commit 32e098dd98
4 changed files with 11 additions and 6 deletions

View file

@ -151,9 +151,6 @@ java::net::PlainDatagramSocketImpl::getOption (jint)
#else /* DISABLE_JAVA_NET */
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
union SockAddr
{

View file

@ -61,9 +61,6 @@ read(int s, void *buf, int len)
#include <bstring.h>
#endif
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
#include <gcj/cni.h>
#include <gcj/javaprims.h>