Ignore:
Timestamp:
Jul 15, 2010, 2:46:42 PM (15 years ago)
Author:
dmik
Message:

hotspot/src: Another big bunch of patches to make the windows code build with Odin32/GCC on OS/2.

Location:
trunk/openjdk/hotspot/src/share/vm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/hotspot/src/share/vm/prims/forte.cpp

    r2 r58  
    618618
    619619
    620 #ifndef _WINDOWS
     620#if !defined(_WINDOWS) && !defined(OS2)
    621621// Support for the Forte(TM) Peformance Tools collector.
    622622//
     
    637637#define collector_func_load(x0,x1,x2,x3,x4,x5,x6) \
    638638        ( collector_func_load ? collector_func_load(x0,x1,x2,x3,x4,x5,x6),0 : 0 )
    639 #endif // !_WINDOWS
     639#endif // !_WINDOWS && !OS2
    640640
    641641} // end extern "C"
     
    643643
    644644void Forte::register_stub(const char* name, address start, address end) {
    645 #if !defined(_WINDOWS) && !defined(IA64)
     645#if !defined(_WINDOWS) && !defined(OS2) && !defined(IA64)
    646646  assert(pointer_delta(end, start, sizeof(jbyte)) < INT_MAX,
    647647    "Code size exceeds maximum range")
     
    649649  collector_func_load((char*)name, NULL, NULL, start,
    650650    pointer_delta(end, start, sizeof(jbyte)), 0, NULL);
    651 #endif // !_WINDOWS && !IA64
    652 }
     651#endif // !_WINDOWS && !OS2 && !IA64
     652}
  • trunk/openjdk/hotspot/src/share/vm/prims/jniFastGetField.hpp

    r2 r58  
    6161
    6262 public:
    63 #if defined(_WINDOWS) && !defined(_WIN64)
     63#if (defined(_WINDOWS) && !defined(_WIN64)) || defined(OS2)
    6464  static GetBooleanField_t jni_fast_GetBooleanField_fp;
    6565  static GetByteField_t    jni_fast_GetByteField_fp;
  • trunk/openjdk/hotspot/src/share/vm/utilities/globalDefinitions_gcc.hpp

    r51 r58  
    8282
    8383#ifdef OS2
     84#include <sys/types.h>
    8485#ifdef __WIN32OS2__
    8586#include <excpt.h>
     87// compiler's select() would conflict with Winsock
     88#define select __io_select
    8689#include <io.h>
     90#undef select
     91#ifdef __EMX__
     92// we disable BSD visibility for the compiler so define these manually
     93int     finite(double) __pure2;
     94int     isnanf(float) __pure2;
     95#define S_IREAD     S_IRUSR
     96#define S_IWRITE    S_IWUSR
     97#define S_IEXEC     S_IXUSR
     98#include <alloca.h> // <stdlib.h> defines alloca only in BSD mode
     99#endif
     100#else // __WIN32OS2__
     101#include <io.h>
     102#endif // __WIN32OS2__
     103#ifdef __EMX__
     104#include <strings.h> // strcasecmp()
     105// EMX doesn't provide some ANSI declarations
     106#define _alloca     alloca
     107#define _fileno     fileno
     108#define _O_BINARY   O_BINARY
     109#define _O_TEXT     O_TEXT
     110#define _O_CREAT    O_CREAT
     111#define _O_TRUNC    O_TRUNC
     112#define _O_EXCL     O_TRUNC
     113#define _O_WRONLY   O_WRONLY
     114#define _O_RDONLY   O_RDONLY
     115#define _O_RDWR     O_RDWR
     116#define _S_IREAD    S_IREAD
     117#define _S_IWRITE   S_IWRITE
     118#define _S_IEXEC    S_IEXEC
    87119#endif
    88120#endif // OS2
  • trunk/openjdk/hotspot/src/share/vm/utilities/ostream.cpp

    r2 r58  
    835835#endif
    836836
     837#ifdef __WIN32OS2__
     838#include <winsock.h>
     839#endif
     840
    837841// Network access
    838842networkStream::networkStream() : bufferedStream(1024*10, 1024*10) {
Note: See TracChangeset for help on using the changeset viewer.