[multiple changes]
2000-03-15 Tom Tromey <tromey@cygnus.com> * java/io/natFileDescriptorWin32.cc (winerr): Now static. * prims.cc (win32_exception_handler): Reformatted. * include/win32-threads.h (_Jv_HaveCondDestroy): New define. (_Jv_HaveMutexDestroy): Likewise. 2000-03-15 Jon Beniston <jb7216@bristol.ac.uk> * java/io/natFileDescriptorWin32.cc: New file. * java/io/natFileWin32.cc: New file. * java/net/natInetAddress.cc: Added conditional inclusion of Windows / Winsock headers. * java/net/natPlainDatagramSocketImpl.cc: Added conditional inclusion of Windows / Winsock headers. * java/net/natPlainSocketImpl.cc: Added conditional inclusion of Windows / Winsock headers. * include/win32-signal.h: New file. * include/win32-threads.h: New file. * win32-threads.cc: New file. * exception.cc (win32_get_restart_frame): New function. * prims.cc (win32_exception_handler): New function. (main_init) Performs Winsock initialisation. (main_init) Installs exeception handler. From-SVN: r32567
This commit is contained in:
@@ -14,6 +14,17 @@ details. */
|
||||
# define _REENTRANT 1
|
||||
#endif
|
||||
|
||||
#ifdef USE_WINSOCK
|
||||
|
||||
#include <windows.h>
|
||||
#include <winsock.h>
|
||||
|
||||
#ifndef MAXHOSTNAMELEN
|
||||
#define MAXHOSTNAMELEN 64
|
||||
#endif /* MAXHOSTNAMELEN */
|
||||
|
||||
#else
|
||||
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
@@ -35,6 +46,8 @@ details. */
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
#endif /* USE_WINSOCK */
|
||||
|
||||
#include <gcj/cni.h>
|
||||
#include <jvm.h>
|
||||
#include <java/net/InetAddress.h>
|
||||
|
||||
@@ -8,6 +8,15 @@ details. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#ifdef USE_WINSOCK
|
||||
#include <windows.h>
|
||||
#include <winsock.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#ifndef ENOPROTOOPT
|
||||
#define ENOPROTOOPT 109
|
||||
#endif
|
||||
#else /* USE_WINSOCK */
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
@@ -26,6 +35,7 @@ details. */
|
||||
#endif
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#endif /* USE_WINSOCK */
|
||||
|
||||
#if HAVE_BSTRING_H
|
||||
// Needed for bzero, implicitly used by FD_ZERO on IRIX 5.2
|
||||
|
||||
@@ -8,7 +8,17 @@ details. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
||||
#ifndef DISABLE_JAVA_NET
|
||||
#ifdef USE_WINSOCK
|
||||
#include <windows.h>
|
||||
#include <winsock.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#ifndef ENOPROTOOPT
|
||||
#define ENOPROTOOPT 109
|
||||
#endif
|
||||
#else /* USE_WINSOCK */
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
@@ -19,6 +29,7 @@ details. */
|
||||
#include <netinet/tcp.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#endif /* USE_WINSOCK */
|
||||
#endif /* DISABLE_JAVA_NET */
|
||||
|
||||
#if HAVE_BSTRING_H
|
||||
|
||||
Reference in New Issue
Block a user