Changeset 99


Ignore:
Timestamp:
Aug 10, 2010, 8:01:22 PM (15 years ago)
Author:
dmik
Message:

jdk: Made hprof.dll build on OS/2.

Location:
trunk/openjdk/jdk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/openjdk/jdk/make/java/java_hprof_demo/Makefile

    r74 r99  
    8181                 -I$(SHARE_SRC)/demo/jvmti/java_crw_demo
    8282
    83 ifeq ($(filter-out windows os2, $(PLATFORM)),)
     83ifeq ($(PLATFORM), windows)
    8484  OTHER_LDLIBS += wsock32.lib winmm.lib
    8585else
     86ifeq ($(PLATFORM), os2)
     87  OTHER_LDLIBS += -lwsock32.lib -lwinmm.lib
     88else
    8689  OTHER_LDLIBS += $(LIBSOCKET) -lnsl -ldl
     90endif
    8791endif
    8892
     
    113117# Add to ambient vpath so we pick up the library files
    114118#
    115 vpath %.c $(SRCDIR):$(PSRCDIR)
     119vpath %.c $(SRCDIR) $(PSRCDIR)
    116120
    117121#
  • trunk/openjdk/jdk/src/windows/demo/jvmti/hprof/hprof_md.c

    r2 r99  
    3131
    3232#include <windows.h>
     33#ifndef __WIN32OS2__
    3334#include <io.h>
     35#endif
    3436#include <sys/types.h>
    3537#include <sys/stat.h>
     
    4143#include "jni.h"
    4244#include "hprof.h"
     45
     46#ifdef __EMX__
     47#include <unistd.h>
     48#define _S_IREAD    S_IRUSR
     49#define _S_IWRITE   S_IWUSR
     50#define _S_IEXEC    S_IXUSR
     51#define _lseeki64   lseek
     52#endif
    4353
    4454int
Note: See TracChangeset for help on using the changeset viewer.