Elbert Pol wrote:
Your also going to have to include io.h to pull in the setmode(),
then the tests pass.
The makefiles, configure and check.sh also need exeext added to
properly support OS/2 and Windows.
Thanks. Those are too many changes just to work around bugs and
shortcomings of two proprietary, non-posix OSs.
As my commitment is to provide high quality software for free posix
systems, I hope you both will be so kind to patch lzip for your
respective systems until those systems implement posix compatibility.
Hi Antonio,
Is seems i had the wrong place adding it :(
But now set @ :
@@ -643,6 +644,11 @@
int main( const int argc, const char * const argv[] )
{
+ #if defined(__OS2__) || defined(__CYGWIN__)
+ setmode( STDIN_FILENO, O_BINARY );
+ setmode( STDOUT_FILENO, O_BINARY );
+ #endif
+
// Mapping from gzip/bzip2 style 1..9 compression modes
// to the corresponding LZMA compression modes.
const Lzma_options option_mapping[] =
BTW: using __EMX__ Also works
Just OS2 or EMX don't work
Now lzip is passing the test :PP