[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lzip-bug] Re: Version 1.11-rc2 of lzip released

From: Antonio Diaz Diaz
Subject: Re: [Lzip-bug] Re: Version 1.11-rc2 of lzip released
Date: Sun, 01 Aug 2010 17:02:14 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

JonY wrote:
According to <http://www.lesstif.org/~amai/os2/html/porting.html>, setmode looks to be available on OS/2.

Can we agree to use setmode?

I have found that minigzip.c[1] from zlib uses this for Cygwin and OS/2:
  setmode(fileno(file), O_BINARY)

   (see line 38).

So I plan to include the following near the beginning of main():
  #if defined(OS2) || defined(__CYGWIN__)
  setmode( STDIN_FILENO, O_BINARY );

Elbert, JonY, can you check if this works both on Cygwin and OS/2? Thanks.

Best regards,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]