Ignore:
Timestamp:
May 1, 2007, 4:26:23 PM (18 years ago)
Author:
bird
Message:

Translate \r\n like cygwin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/app-shells/bash/builtins/read.def

    r3228 r3263  
    6262#include <errno.h>
    6363
    64 #ifdef __CYGWIN__
     64#if defined (__CYGWIN__) || defined (__OS2__)
    6565#  include <fcntl.h>
    6666#  include <io.h>
     
    379379  unbuffered_read = (nchars > 0) || (delim != '\n') || input_is_pipe;
    380380
    381 #if defined (__CYGWIN__) && defined (O_TEXT)
     381#if (defined (__CYGWIN__) || defined (__OS2__)) && defined (O_TEXT)
    382382  setmode (0, O_TEXT);
    383383#endif
Note: See TracChangeset for help on using the changeset viewer.