Commit 32e098dd by Andreas Tobler Committed by Tom Tromey

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
parent 13c22933
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.
2002-11-25 Tom Tromey <tromey@redhat.com>
* verify.cc (type::compatible): Backed out broken change.
......
......@@ -58,6 +58,10 @@ _Jv_platform_close_on_exec (jint fd)
#ifndef DISABLE_JAVA_NET
#ifndef HAVE_SOCKLEN_T
#define socklen_t int
#endif
static inline int
_Jv_socket (int domain, int type, int protocol)
{
......
......@@ -151,9 +151,6 @@ java::net::PlainDatagramSocketImpl::getOption (jint)
#else /* DISABLE_JAVA_NET */
#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#endif
union SockAddr
{
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment