Bug 461847 - Windows Mobile build bustage in BZ2. Patch forwarded to bz2 owner, local change reviewed by blassey/bsmedberg
authorDoug Turner <dougt@meer.net>
Mon, 15 Dec 2008 09:55:29 -0800
changeset 22813 28155683625d61106060d1f9e81ceff05d697cf6
parent 22812 e5a712c64cc97c7477d497e0d7e29cd0473a5ac4
child 22814 f86eeb88e4a8f90bb52bc3e3b9263a381fe92876
push id4194
push userdougt@mozilla.com
push dateMon, 15 Dec 2008 17:55:53 +0000
treeherdermozilla-central@28155683625d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs461847
milestone1.9.2a1pre
Bug 461847 - Windows Mobile build bustage in BZ2. Patch forwarded to bz2 owner, local change reviewed by blassey/bsmedberg
modules/libbz2/src/bzlib.c
--- a/modules/libbz2/src/bzlib.c
+++ b/modules/libbz2/src/bzlib.c
@@ -1366,17 +1366,17 @@ const char * BZ_API(BZ2_bzlibVersion)(vo
 {
    return BZ_VERSION;
 }
 
 
 #ifndef BZ_NO_STDIO
 /*---------------------------------------------------*/
 
-#if defined(_WIN32) || defined(OS2) || defined(MSDOS)
+#if (defined(_WIN32) || defined(OS2) || defined(MSDOS)) && !defined(WINCE)
 #   include <fcntl.h>
 #   include <io.h>
 #   define SET_BINARY_MODE(file) setmode(fileno(file),O_BINARY)
 #else
 #   define SET_BINARY_MODE(file)
 #endif
 static
 BZFILE * bzopen_or_bzdopen