Changeset 3320


Ignore:
Timestamp:
May 6, 2007, 5:12:41 AM (18 years ago)
Author:
bird
Message:

do the same setmode stuff as cygwin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/sys-libs/bzip2/bzip2.c

    r3318 r3320  
    111111#   endif
    112112
    113 #   ifdef __CYGWIN__
     113#   if defined (__CYGWIN__) || defined (__OS2__)
    114114#     include <io.h>
    115115#     include <fcntl.h>
     
    18191819   progName = &progNameReally[0];
    18201820   for (tmp = &progNameReally[0]; *tmp != '\0'; tmp++)
     1821#if defined(__OS2__)
     1822      if (*tmp == '/'
     1823       || *tmp == '\\'
     1824       || *tmp == ':')
     1825         progName = tmp + 1;
     1826#else
    18211827      if (*tmp == PATH_SEP) progName = tmp + 1;
     1828#endif
    18221829
    18231830
Note: See TracChangeset for help on using the changeset viewer.