Changeset 96


Ignore:
Timestamp:
Aug 9, 2010, 9:02:40 PM (15 years ago)
Author:
dmik
Message:

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

Location:
trunk/openjdk/jdk
Files:
2 edited

Legend:

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

    r2 r96  
    4848        java/util/jar/JarFile.java
    4949
    50 ifneq ($(PLATFORM), windows)
     50ifneq ($(filter-out windows os2, $(PLATFORM)),)
    5151OTHER_CFLAGS += -DUSE_MMAP
    52 else
     52endif
     53ifeq ($(PLATFORM), windows)
    5354  # Files built here do not compile with warning level 3 if warnings are fatal
    5455  COMPILER_WARNINGS_FATAL=false
     
    6364  endif
    6465endif
    65 include $(BUILDDIR)/common/Mapfile-vers.gmk
    66 include $(BUILDDIR)/common/Library.gmk
    6766
    6867ifeq ($(PLATFORM), windows)
     
    7069            -export:ZIP_ReadEntry -export:ZIP_GetNextEntry
    7170else
     71ifeq ($(PLATFORM), os2)
     72# exports live in .def file
     73DEF_FILE = $(OBJDIR)/$(LIBRARY).def
     74$(DEF_FILE): $(MAKEFILE)
     75        @$(ECHO) 'EXPORTS \n \
     76  ZIP_Open = "_ZIP_Open@8" \n \
     77  ZIP_Close = "_ZIP_Close@4" \n \
     78  ZIP_FindEntry = "_ZIP_FindEntry@16" \n \
     79  ZIP_ReadEntry = "_ZIP_ReadEntry@16" \n \
     80  ZIP_GetNextEntry = "_ZIP_GetNextEntry@8" \n \
     81' > $@
     82clean::
     83        -$(RM) $(DEF_FILE)
     84else
    7285CPPFLAGS += -UDEBUG
    7386endif
     87endif
     88
     89include $(BUILDDIR)/common/Mapfile-vers.gmk
     90include $(BUILDDIR)/common/Library.gmk
    7491
    7592CPPFLAGS += -I$(SHARE_SRC)/native/java/util/zip/zlib-$(ZLIB_VERSION)
  • trunk/openjdk/jdk/src/share/native/java/util/zip/zip_util.c

    r2 r96  
    143143static int
    144144ZFILE_read(ZFILE zfd, char *buf, jint nbytes) {
    145 #ifdef WIN32
     145#if defined(WIN32) || defined(__OS2__)
    146146    return (int) IO_Read(zfd, buf, nbytes);
    147147#else
Note: See TracChangeset for help on using the changeset viewer.