home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / diffs / infozip / zip19p1 / fileio.c next >
Encoding:
Text File  |  1993-12-14  |  1.8 KB  |  60 lines

  1. *** orig/infozip/zip19p1/fileio.c    Sun Nov 21 17:17:16 1993
  2. --- src/infozip/zip19p1/fileio.c    Sun Nov 21 18:58:28 1993
  3. ***************
  4. *** 217,222 ****
  5. --- 217,226 ----
  6.   #        define FFIRST(n,d)     _dos_findfirst(n,FATTR,(struct find_t *)d)
  7.   #        define FNEXT(d)        _dos_findnext((struct find_t *)d)
  8.   #      endif /* ?__TURBOC__ */
  9. + #      if defined(__GO32__)
  10. + #        include <sys/dirent.h>
  11. + #        define direct dirent
  12. + #      else /* !__GO32__ */
  13.          typedef struct direct {
  14.            char d_reserved[30];
  15.            char d_name[13];
  16. ***************
  17. *** 225,230 ****
  18. --- 229,235 ----
  19.        HANDLE d_hFindFile;
  20.   #endif
  21.          } DIR;
  22. + #      endif /* ?__GO32__ */
  23.   #     endif /* ?OS2 */
  24.   #    else /* !MSDOS */
  25.   #      ifdef VMS
  26. ***************
  27. *** 341,347 ****
  28.   #endif /* PROTO */
  29.   
  30.   
  31. ! #if defined(MSDOS) && !defined(OS2)
  32.   dstrm *opendir(n)
  33.   char *n;                /* directory to open */
  34.   /* Start searching for files in the MSDOS directory n */
  35. --- 346,352 ----
  36.   #endif /* PROTO */
  37.   
  38.   
  39. ! #if defined(MSDOS) && !defined(OS2) && !defined(__GO32__)
  40.   dstrm *opendir(n)
  41.   char *n;                /* directory to open */
  42.   /* Start searching for files in the MSDOS directory n */
  43. ***************
  44. *** 1197,1203 ****
  45.         linkput ? lstat(n, &s) :
  46.   #endif /* S_IFLNK */
  47.         SSTAT(n, &s)
  48. ! #if defined(__TURBOC__) || defined(VMS)
  49.          /* Borland and VMS C bug: stat() succeeds on wild card names! */
  50.         || isshexp(n)
  51.   #endif
  52. --- 1202,1208 ----
  53.         linkput ? lstat(n, &s) :
  54.   #endif /* S_IFLNK */
  55.         SSTAT(n, &s)
  56. ! #if defined(__TURBOC__) || defined(VMS) || defined(__GO32__)
  57.          /* Borland and VMS C bug: stat() succeeds on wild card names! */
  58.         || isshexp(n)
  59.   #endif
  60.