mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 13:31:57 +00:00
nspr: update nspr to hg rev 753fe0f7964c
This commit is contained in:
@@ -1 +0,0 @@
|
||||
NSPR_4_15_RTM
|
||||
Vendored
+2
-17
@@ -783,7 +783,6 @@ with_android_ndk
|
||||
with_android_toolchain
|
||||
with_android_version
|
||||
with_android_platform
|
||||
with_gonk
|
||||
with_dist_prefix
|
||||
with_dist_bindir
|
||||
with_dist_includedir
|
||||
@@ -873,6 +872,7 @@ datadir='${datarootdir}'
|
||||
sysconfdir='${prefix}/etc'
|
||||
sharedstatedir='${prefix}/com'
|
||||
localstatedir='${prefix}/var'
|
||||
|
||||
includedir='${prefix}/include'
|
||||
oldincludedir='/usr/include'
|
||||
docdir='${datarootdir}/doc/${PACKAGE}'
|
||||
@@ -1484,7 +1484,6 @@ Optional Packages:
|
||||
Android platform version, default 5 for arm, 9 for x86/mips
|
||||
--with-android-platform=DIR
|
||||
location of platform dir
|
||||
--with-gonk=DIR location of gonk dir
|
||||
--with-dist-prefix=DIST_PREFIX
|
||||
place build files in DIST_PREFIX dist
|
||||
--with-dist-bindir=DIR build execuatables in DIR DIST_PREFIX/bin
|
||||
@@ -2488,7 +2487,7 @@ test -n "$target_alias" &&
|
||||
program_prefix=${target_alias}-
|
||||
|
||||
MOD_MAJOR_VERSION=4
|
||||
MOD_MINOR_VERSION=20
|
||||
MOD_MINOR_VERSION=21
|
||||
MOD_PATCH_VERSION=0
|
||||
NSPR_MODNAME=nspr20
|
||||
_HAVE_PTHREADS=
|
||||
@@ -2656,19 +2655,6 @@ mipsel-*android*)
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
|
||||
# Check whether --with-gonk was given.
|
||||
if test "${with_gonk+set}" = set; then :
|
||||
withval=$with_gonk; gonkdir=$withval
|
||||
fi
|
||||
|
||||
|
||||
if test -n "$gonkdir" ; then
|
||||
|
||||
$as_echo "#define ANDROID 1" >>confdefs.h
|
||||
|
||||
else
|
||||
case "$target" in
|
||||
*-android*|*-linuxandroid*)
|
||||
if test -z "$android_ndk" ; then
|
||||
@@ -2754,7 +2740,6 @@ $as_echo "$android_platform" >&6; }
|
||||
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
dist_prefix='${MOD_DEPTH}/dist'
|
||||
dist_bindir='${dist_prefix}/bin'
|
||||
|
||||
+5
-17
@@ -15,7 +15,7 @@ dnl ========================================================
|
||||
dnl = Defaults
|
||||
dnl ========================================================
|
||||
MOD_MAJOR_VERSION=4
|
||||
MOD_MINOR_VERSION=20
|
||||
MOD_MINOR_VERSION=21
|
||||
MOD_PATCH_VERSION=0
|
||||
NSPR_MODNAME=nspr20
|
||||
_HAVE_PTHREADS=
|
||||
@@ -147,21 +147,6 @@ mipsel-*android*)
|
||||
;;
|
||||
esac
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Gonk is a fork of Android used for Mozilla's B2G project.
|
||||
dnl = Configuration is done largely by the top level config
|
||||
dnl = and the specified gonk directory doesn't matter here.
|
||||
dnl ========================================================
|
||||
|
||||
AC_ARG_WITH(gonk,
|
||||
[ --with-gonk=DIR location of gonk dir],
|
||||
gonkdir=$withval)
|
||||
|
||||
if test -n "$gonkdir" ; then
|
||||
dnl Most things are directly configured by env vars when building for gonk
|
||||
|
||||
AC_DEFINE(ANDROID)
|
||||
else
|
||||
case "$target" in
|
||||
*-android*|*-linuxandroid*)
|
||||
if test -z "$android_ndk" ; then
|
||||
@@ -246,7 +231,6 @@ case "$target" in
|
||||
AC_DEFINE(ANDROID)
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
dnl ========================================================
|
||||
dnl =
|
||||
@@ -2106,6 +2090,10 @@ tools are selected during the Xcode/Developer Tools installation.])
|
||||
AC_DEFINE(_AMD64_)
|
||||
USE_64=1
|
||||
;;
|
||||
aarch64)
|
||||
AC_DEFINE(_ARM64_)
|
||||
USE_64=1
|
||||
;;
|
||||
ia64)
|
||||
AC_DEFINE(_IA64_)
|
||||
USE_64=1
|
||||
|
||||
@@ -54,7 +54,7 @@ PRVersionDescription VERSION_DESC_NAME =
|
||||
/* filename */ _PRODUCTION, /* the produced library name */
|
||||
/* description */ "Portable runtime", /* what we are */
|
||||
/* security */ "N/A", /* not applicable here */
|
||||
/* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
|
||||
/* copywrite */ "This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.",
|
||||
/* comment */ "http://www.mozilla.org/MPL/",
|
||||
/* specialString */ ""
|
||||
};
|
||||
|
||||
@@ -54,7 +54,7 @@ PRVersionDescription VERSION_DESC_NAME =
|
||||
/* filename */ _PRODUCTION, /* the produced library name */
|
||||
/* description */ "Portable runtime", /* what we are */
|
||||
/* security */ "N/A", /* not applicable here */
|
||||
/* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
|
||||
/* copywrite */ "This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.",
|
||||
/* comment */ "http://www.mozilla.org/MPL/",
|
||||
/* specialString */ ""
|
||||
};
|
||||
|
||||
@@ -54,7 +54,7 @@ PRVersionDescription VERSION_DESC_NAME =
|
||||
/* filename */ _PRODUCTION, /* the produced library name */
|
||||
/* description */ "Portable runtime", /* what we are */
|
||||
/* security */ "N/A", /* not applicable here */
|
||||
/* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
|
||||
/* copywrite */ "This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.",
|
||||
/* comment */ "http://www.mozilla.org/MPL/",
|
||||
/* specialString */ ""
|
||||
};
|
||||
|
||||
@@ -83,7 +83,7 @@ extern void _MD_win32_map_accept_error(PRInt32 err);
|
||||
extern void _MD_win32_map_acceptex_error(PRInt32 err);
|
||||
#define _PR_MD_MAP_ACCEPTEX_ERROR _MD_win32_map_acceptex_error
|
||||
|
||||
extern PRInt32 _MD_win32_map_connect_error(PRInt32 err);
|
||||
extern void _MD_win32_map_connect_error(PRInt32 err);
|
||||
#define _PR_MD_MAP_CONNECT_ERROR _MD_win32_map_connect_error
|
||||
|
||||
extern void _MD_win32_map_bind_error(PRInt32 err);
|
||||
|
||||
@@ -214,6 +214,55 @@
|
||||
#define PR_BYTES_PER_WORD_LOG2 2
|
||||
#define PR_BYTES_PER_DWORD_LOG2 3
|
||||
|
||||
#elif defined(_M_ARM64) || defined(_ARM64_)
|
||||
|
||||
#define IS_LITTLE_ENDIAN 1
|
||||
#undef IS_BIG_ENDIAN
|
||||
#define IS_64
|
||||
|
||||
#define PR_BYTES_PER_BYTE 1
|
||||
#define PR_BYTES_PER_SHORT 2
|
||||
#define PR_BYTES_PER_INT 4
|
||||
#define PR_BYTES_PER_INT64 8
|
||||
#define PR_BYTES_PER_LONG 4
|
||||
#define PR_BYTES_PER_FLOAT 4
|
||||
#define PR_BYTES_PER_WORD 8
|
||||
#define PR_BYTES_PER_DWORD 8
|
||||
#define PR_BYTES_PER_DOUBLE 8
|
||||
|
||||
#define PR_BITS_PER_BYTE 8
|
||||
#define PR_BITS_PER_SHORT 16
|
||||
#define PR_BITS_PER_INT 32
|
||||
#define PR_BITS_PER_INT64 64
|
||||
#define PR_BITS_PER_LONG 32
|
||||
#define PR_BITS_PER_FLOAT 32
|
||||
#define PR_BITS_PER_WORD 64
|
||||
#define PR_BITS_PER_DWORD 64
|
||||
#define PR_BITS_PER_DOUBLE 64
|
||||
|
||||
#define PR_BITS_PER_BYTE_LOG2 3
|
||||
#define PR_BITS_PER_SHORT_LOG2 4
|
||||
#define PR_BITS_PER_INT_LOG2 5
|
||||
#define PR_BITS_PER_INT64_LOG2 6
|
||||
#define PR_BITS_PER_LONG_LOG2 5
|
||||
#define PR_BITS_PER_FLOAT_LOG2 5
|
||||
#define PR_BITS_PER_WORD_LOG2 6
|
||||
#define PR_BITS_PER_DWORD_LOG2 6
|
||||
#define PR_BITS_PER_DOUBLE_LOG2 6
|
||||
|
||||
#define PR_ALIGN_OF_SHORT 2
|
||||
#define PR_ALIGN_OF_INT 4
|
||||
#define PR_ALIGN_OF_LONG 4
|
||||
#define PR_ALIGN_OF_INT64 8
|
||||
#define PR_ALIGN_OF_FLOAT 4
|
||||
#define PR_ALIGN_OF_WORD 8
|
||||
#define PR_ALIGN_OF_DWORD 8
|
||||
#define PR_ALIGN_OF_DOUBLE 8
|
||||
#define PR_ALIGN_OF_POINTER 8
|
||||
|
||||
#define PR_BYTES_PER_WORD_LOG2 3
|
||||
#define PR_BYTES_PER_DWORD_LOG2 3
|
||||
|
||||
#else /* defined(_M_IX86) || defined(_X86_) */
|
||||
|
||||
#error unknown processor architecture
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#define _PR_SI_ARCHITECTURE "ia64"
|
||||
#elif defined(_M_ARM) || defined(_ARM_)
|
||||
#define _PR_SI_ARCHITECTURE "arm"
|
||||
#elif defined(_M_ARM64)
|
||||
#define _PR_SI_ARCHITECTURE "aarch64"
|
||||
#else
|
||||
#error unknown processor architecture
|
||||
#endif
|
||||
|
||||
@@ -14,7 +14,8 @@ PR_BEGIN_EXTERN_C
|
||||
** functions.
|
||||
*/
|
||||
#if defined(_WIN32) && (_MSC_VER >= 1300) && \
|
||||
(defined(_M_IX86) || defined(_M_AMD64) || defined(_M_ARM))
|
||||
(defined(_M_IX86) || defined(_M_X64) || defined(_M_ARM) || \
|
||||
defined(_M_ARM64))
|
||||
# include <intrin.h>
|
||||
# pragma intrinsic(_BitScanForward,_BitScanReverse)
|
||||
__forceinline static int __prBitScanForward32(unsigned int val)
|
||||
@@ -33,7 +34,8 @@ PR_BEGIN_EXTERN_C
|
||||
# define pr_bitscan_clz32(val) __prBitScanReverse32(val)
|
||||
# define PR_HAVE_BUILTIN_BITSCAN32
|
||||
#elif ((__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) && \
|
||||
(defined(__i386__) || defined(__x86_64__) || defined(__arm__))
|
||||
(defined(__i386__) || defined(__x86_64__) || defined(__arm__) || \
|
||||
defined(__aarch64__))
|
||||
# define pr_bitscan_ctz32(val) __builtin_ctz(val)
|
||||
# define pr_bitscan_clz32(val) __builtin_clz(val)
|
||||
# define PR_HAVE_BUILTIN_BITSCAN32
|
||||
@@ -136,7 +138,7 @@ NSPR_API(PRIntn) PR_FloorLog2(PRUint32 i);
|
||||
*/
|
||||
|
||||
#if defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_AMD64) || \
|
||||
defined(_M_X64) || defined(_M_ARM))
|
||||
defined(_M_X64) || defined(_M_ARM) || defined(_M_ARM64))
|
||||
#include <stdlib.h>
|
||||
#pragma intrinsic(_rotl, _rotr)
|
||||
#define PR_ROTATE_LEFT32(a, bits) _rotl(a, bits)
|
||||
|
||||
@@ -31,9 +31,9 @@ PR_BEGIN_EXTERN_C
|
||||
** The format of the version string is
|
||||
** "<major version>.<minor version>[.<patch level>] [<Beta>]"
|
||||
*/
|
||||
#define PR_VERSION "4.20 Beta"
|
||||
#define PR_VERSION "4.21 Beta"
|
||||
#define PR_VMAJOR 4
|
||||
#define PR_VMINOR 20
|
||||
#define PR_VMINOR 21
|
||||
#define PR_VPATCH 0
|
||||
#define PR_BETA PR_TRUE
|
||||
|
||||
|
||||
@@ -247,7 +247,7 @@ static PRInt32 PR_CALLBACK Ipv6ToIpv4SocketRecvFrom(PRFileDesc *fd, void *buf,
|
||||
|
||||
#if defined(_PR_INET6_PROBE)
|
||||
static PRBool ipv6_is_present;
|
||||
extern PRBool _pr_test_ipv6_socket(void);
|
||||
PR_EXTERN(PRBool) _pr_test_ipv6_socket(void);
|
||||
|
||||
#if !defined(_PR_INET6) && defined(_PR_HAVE_GETIPNODEBYNAME)
|
||||
extern PRStatus _pr_find_getipnodebyname(void);
|
||||
|
||||
@@ -9,6 +9,12 @@
|
||||
|
||||
#include "primpl.h"
|
||||
|
||||
#if defined(_WIN64)
|
||||
#if defined(_MSC_VER)
|
||||
#pragma comment(lib, "ws2_32.lib")
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define READ_FD 1
|
||||
#define WRITE_FD 2
|
||||
#define CONNECT_FD 3
|
||||
|
||||
@@ -54,7 +54,7 @@ PRVersionDescription VERSION_DESC_NAME =
|
||||
/* filename */ _PRODUCTION, /* the produced library name */
|
||||
/* description */ "Portable runtime", /* what we are */
|
||||
/* security */ "N/A", /* not applicable here */
|
||||
/* copywrite */ "Copyright (c) 1998 Netscape Communications Corporation. All Rights Reserved",
|
||||
/* copywrite */ "This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.",
|
||||
/* comment */ "License information: http://www.mozilla.org/MPL/",
|
||||
/* specialString */ ""
|
||||
};
|
||||
|
||||
@@ -151,7 +151,7 @@ main()
|
||||
int
|
||||
main()
|
||||
{
|
||||
prinf("PASS\n");
|
||||
printf("PASS\n");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -40,7 +40,7 @@ static char *compatible_version[] = {
|
||||
"4.10", "4.10.1", "4.10.2", "4.10.3", "4.10.4",
|
||||
"4.10.5", "4.10.6", "4.10.7", "4.10.8", "4.10.9",
|
||||
"4.10.10", "4.11", "4.12", "4.13", "4.14", "4.15",
|
||||
"4.16", "4.17", "4.18", "4.19",
|
||||
"4.16", "4.17", "4.18", "4.19", "4.20",
|
||||
PR_VERSION
|
||||
};
|
||||
|
||||
@@ -56,8 +56,8 @@ static char *incompatible_version[] = {
|
||||
"3.0", "3.0.1",
|
||||
"3.1", "3.1.1", "3.1.2", "3.1.3",
|
||||
"3.5", "3.5.1",
|
||||
"4.20.1",
|
||||
"4.21", "4.21.1",
|
||||
"4.21.1",
|
||||
"4.22", "4.22.1",
|
||||
"10.0", "11.1", "12.14.20"
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user