diff --git a/nsprpub/TAG-INFO b/nsprpub/TAG-INFO index 5ce49275532..8662ba2a080 100644 --- a/nsprpub/TAG-INFO +++ b/nsprpub/TAG-INFO @@ -1 +1 @@ -NSPR_4_10_7_BETA3 +NSPR_4_10_7_BETA4 diff --git a/nsprpub/config/prdepend.h b/nsprpub/config/prdepend.h index e49e92677e3..6c66b37ca0f 100644 --- a/nsprpub/config/prdepend.h +++ b/nsprpub/config/prdepend.h @@ -10,3 +10,4 @@ */ #error "Do not include this header file." + diff --git a/nsprpub/configure b/nsprpub/configure index bb4c28fbae2..628ff81d9f9 100755 --- a/nsprpub/configure +++ b/nsprpub/configure @@ -7269,6 +7269,9 @@ $as_echo "$as_me: WARNING: Unknown version of the Microsoft (R) Manifest Tool." else $as_echo "#define _X86_ 1" >>confdefs.h + if test -z "$GNU_CC" -a "$MSC_VER" -ge "1700"; then + CFLAGS="$CFLAGS -arch:IA32" + fi fi ;; x86_64) diff --git a/nsprpub/configure.in b/nsprpub/configure.in index 067799029c9..2e012adf4c9 100644 --- a/nsprpub/configure.in +++ b/nsprpub/configure.in @@ -2081,6 +2081,11 @@ tools are selected during the Xcode/Developer Tools installation.]) AC_DEFINE(_AMD64_) else AC_DEFINE(_X86_) + if test -z "$GNU_CC" -a "$MSC_VER" -ge "1700"; then + dnl Visual C++ 2012 defaults to -arch:SSE2. Use -arch:IA32 + dnl to avoid requiring SSE2. + CFLAGS="$CFLAGS -arch:IA32" + fi fi ;; x86_64) diff --git a/nsprpub/pr/src/md/unix/unix.c b/nsprpub/pr/src/md/unix/unix.c index 38f7be9b3ef..4f27b82fff9 100644 --- a/nsprpub/pr/src/md/unix/unix.c +++ b/nsprpub/pr/src/md/unix/unix.c @@ -21,6 +21,10 @@ #include #endif +#if defined(ANDROID) +#include +#endif + /* To get FIONREAD */ #if defined(UNIXWARE) #include @@ -2709,8 +2713,8 @@ static void* _MD_Unix_mmap64( } /* _MD_Unix_mmap64 */ #endif /* defined(_PR_NO_LARGE_FILES) || defined(SOLARIS2_5) */ -/* Android doesn't have mmap64. */ -#if defined(ANDROID) +/* Android <= 19 doesn't have mmap64. */ +#if defined(ANDROID) && __ANDROID_API__ <= 19 extern void *__mmap2(void *, size_t, int, int, int, size_t); #define ANDROID_PAGE_SIZE 4096 diff --git a/nsprpub/pr/tests/vercheck.c b/nsprpub/pr/tests/vercheck.c index c7890e75ec5..f9f183b3ee7 100644 --- a/nsprpub/pr/tests/vercheck.c +++ b/nsprpub/pr/tests/vercheck.c @@ -28,7 +28,7 @@ */ static char *compatible_version[] = { "4.0", "4.0.1", "4.1", "4.1.1", "4.1.2", "4.1.3", - "4.2", "4.2.1", "4.2.2", "4.3", "4.4", " 4.4.1", + "4.2", "4.2.1", "4.2.2", "4.3", "4.4", "4.4.1", "4.5", "4.5.1", "4.6", "4.6.1", "4.6.2", "4.6.3", "4.6.4", "4.6.5", "4.6.6", "4.6.7", "4.6.8",