mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 849085: Update to NSPR_4_10_5_BETA3. Also includes fixes for
bug 989497 and bug 986745.
This commit is contained in:
parent
d171aafe06
commit
542dc7b9a1
@ -1 +1 @@
|
||||
NSPR_4_10_5_BETA2
|
||||
NSPR_4_10_5_BETA3
|
||||
|
6
nsprpub/aclocal.m4
vendored
6
nsprpub/aclocal.m4
vendored
@ -1,6 +0,0 @@
|
||||
dnl
|
||||
dnl Local autoconf macros used with Mozilla.
|
||||
dnl The contents of this file are under the Public Domain.
|
||||
dnl
|
||||
|
||||
builtin(include, build/autoconf/acwinpaths.m4)
|
@ -1,13 +0,0 @@
|
||||
dnl This Source Code Form is subject to the terms of the Mozilla Public
|
||||
dnl License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
dnl Work around the problem that a DOS-style absolute path is split by
|
||||
dnl the colon in autoconf 2.59 and earlier. The _AC_OUTPUT_FILES macro
|
||||
dnl was removed and the problem was fixed in autoconf 2.60.
|
||||
define(GENERATE_FILES_NOSPLIT, [
|
||||
define([_AC_OUTPUT_FILES],
|
||||
[patsubst($@, [`IFS=:], [`#IFS=:])])
|
||||
])
|
||||
m4_ifdef([_AC_OUTPUT_FILES],
|
||||
[GENERATE_FILES_NOSPLIT(defn([_AC_OUTPUT_FILES]))])
|
@ -10,3 +10,4 @@
|
||||
*/
|
||||
|
||||
#error "Do not include this header file."
|
||||
|
||||
|
889
nsprpub/configure
vendored
889
nsprpub/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -4,11 +4,12 @@ dnl This Source Code Form is subject to the terms of the Mozilla Public
|
||||
dnl License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
dnl file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
AC_PREREQ(2.56)
|
||||
AC_INIT(config/libc_r.h)
|
||||
AC_PREREQ(2.61)
|
||||
AC_INIT
|
||||
AC_CONFIG_SRCDIR([pr/include/nspr.h])
|
||||
|
||||
AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf)
|
||||
AC_CANONICAL_SYSTEM
|
||||
AC_CANONICAL_TARGET
|
||||
|
||||
dnl ========================================================
|
||||
dnl = Defaults
|
||||
@ -673,7 +674,6 @@ else
|
||||
AC_PROG_CXX
|
||||
fi
|
||||
fi
|
||||
AC_PROG_CPP
|
||||
AC_PROG_RANLIB
|
||||
AC_PATH_PROGS(AS, as, $CC)
|
||||
AC_PATH_PROGS(AR, ar, echo not_ar)
|
||||
@ -688,6 +688,8 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
AC_PROG_CPP
|
||||
|
||||
if test "$GCC" = "yes"; then
|
||||
GNU_CC=1
|
||||
fi
|
||||
@ -2530,29 +2532,6 @@ if test -z "$SKIP_LIBRARY_CHECKS"; then
|
||||
dnl ========================================================
|
||||
dnl Check for system libraries
|
||||
dnl ========================================================
|
||||
dnl AC_CHECK_LIB(C, main)
|
||||
dnl AC_CHECK_LIB(C_r, main)
|
||||
dnl AC_CHECK_LIB(c, main)
|
||||
dnl AC_CHECK_LIB(c_r, main)
|
||||
dnl AC_CHECK_LIB(dce, main)
|
||||
dnl AC_CHECK_LIB(dl, main)
|
||||
dnl AC_CHECK_LIB(dld, main)
|
||||
dnl AC_CHECK_LIB(gen, main)
|
||||
dnl AC_CHECK_LIB(ip6, main)
|
||||
dnl AC_CHECK_LIB(l, main)
|
||||
dnl AC_CHECK_LIB(m, main)
|
||||
dnl AC_CHECK_LIB(nsl, main)
|
||||
dnl AC_CHECK_LIB(posix4, main)
|
||||
dnl AC_CHECK_LIB(prstrms, main)
|
||||
dnl AC_CHECK_LIB(prstrms_shr, main)
|
||||
dnl AC_CHECK_LIB(pthread, main)
|
||||
dnl AC_CHECK_LIB(pthreads, main)
|
||||
dnl AC_CHECK_LIB(resolv, main)
|
||||
dnl AC_CHECK_LIB(rt, main)
|
||||
dnl AC_CHECK_LIB(socket, main)
|
||||
dnl AC_CHECK_LIB(svld, main)
|
||||
dnl AC_CHECK_LIB(thread, main)
|
||||
dnl AC_CHECK_LIB(vms_jackets, main)
|
||||
|
||||
|
||||
dnl We don't want anything to link with libdl even if it's present on OS X,
|
||||
@ -2574,25 +2553,10 @@ esac
|
||||
dnl ========================================================
|
||||
dnl Check for system header files.
|
||||
dnl ========================================================
|
||||
dnl AC_HEADER_DIRENT
|
||||
dnl AC_HEADER_STDC
|
||||
dnl AC_HEADER_SYS_WAIT
|
||||
dnl AC_CHECK_HEADERS(fcntl.h limits.h sys/file.h sys/ioctl.h sys/time.h unistd.h)
|
||||
|
||||
dnl ========================================================
|
||||
dnl Check for typedefs and structs
|
||||
dnl ========================================================
|
||||
dnl AC_C_CONST
|
||||
dnl AC_TYPE_UID_T
|
||||
dnl AC_TYPE_MODE_T
|
||||
dnl AC_TYPE_OFF_T
|
||||
dnl AC_TYPE_PID_T
|
||||
dnl AC_TYPE_SIZE_T
|
||||
dnl AC_STRUCT_ST_BLKSIZE
|
||||
dnl AC_STRUCT_ST_BLOCKS
|
||||
dnl AC_STRUCT_ST_RDEV
|
||||
dnl AC_HEADER_TIME
|
||||
dnl AC_STRUCT_TM
|
||||
|
||||
dnl ========================================================
|
||||
dnl Checks for library functions.
|
||||
@ -2603,15 +2567,6 @@ LIBS="$LIBS $OS_LIBS"
|
||||
AC_CHECK_FUNCS(dladdr gettid lchown setpriority strerror syscall)
|
||||
LIBS="$_SAVE_LIBS"
|
||||
|
||||
dnl AC_FUNC_MEMCMP
|
||||
dnl AC_FUNC_MMAP
|
||||
dnl AC_FUNC_SETVBUF_REVERSED
|
||||
dnl AC_FUNC_STRCOLL
|
||||
dnl AC_FUNC_STRFTIME
|
||||
dnl AC_FUNC_UTIME_NULL
|
||||
dnl AC_FUNC_VPRINTF
|
||||
dnl AC_CHECK_FUNCS(ftime getcwd gethostname gettimeofday getwd mkdir mktime putenv rmdir select socket strdup strerror strstr strtol strtoul uname)
|
||||
|
||||
dnl ========================================================
|
||||
dnl Check options
|
||||
dnl ========================================================
|
||||
@ -3272,4 +3227,6 @@ fi
|
||||
|
||||
echo $MAKEFILES > unallmakefiles
|
||||
|
||||
AC_OUTPUT([$MAKEFILES], [chmod +x config/nspr-config])
|
||||
AC_CONFIG_FILES([$MAKEFILES])
|
||||
AC_CONFIG_COMMANDS([default], [chmod +x config/nspr-config])
|
||||
AC_OUTPUT
|
||||
|
@ -136,6 +136,18 @@ extern PRInt32 _PR_ppc_AtomicSet(PRInt32 *val, PRInt32 newval);
|
||||
#define _MD_ATOMIC_SET _PR_ppc_AtomicSet
|
||||
#endif
|
||||
|
||||
#if defined(__powerpc64__)
|
||||
#if (__GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 1)
|
||||
/* Use GCC built-in functions */
|
||||
#define _PR_HAVE_ATOMIC_OPS
|
||||
#define _MD_INIT_ATOMIC()
|
||||
#define _MD_ATOMIC_INCREMENT(ptr) __sync_add_and_fetch(ptr, 1)
|
||||
#define _MD_ATOMIC_DECREMENT(ptr) __sync_sub_and_fetch(ptr, 1)
|
||||
#define _MD_ATOMIC_ADD(ptr, i) __sync_add_and_fetch(ptr, i)
|
||||
#define _MD_ATOMIC_SET(ptr, nv) __sync_lock_test_and_set(ptr, nv)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(__alpha)
|
||||
#define _PR_HAVE_ATOMIC_OPS
|
||||
#define _MD_INIT_ATOMIC()
|
||||
|
@ -107,7 +107,7 @@ long __cdecl _InterlockedExchangeAdd(long volatile *Addend, long Value);
|
||||
((defined(__i386__) && \
|
||||
defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)) || \
|
||||
defined(__ia64__) || defined(__x86_64__) || \
|
||||
(defined(__powerpc__) && !defined(__powerpc64__)) || \
|
||||
defined(__powerpc__) || \
|
||||
(defined(__arm__) && \
|
||||
defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4)) || \
|
||||
defined(__aarch64__) || defined(__alpha))))
|
||||
|
@ -90,7 +90,6 @@ _PR_MD_WAIT(PRThread *thread, PRIntervalTime ticks)
|
||||
{
|
||||
case WAIT_OBJECT_0:
|
||||
return PR_SUCCESS;
|
||||
break;
|
||||
case WAIT_TIMEOUT:
|
||||
_PR_THREAD_LOCK(thread);
|
||||
if (thread->state == _PR_IO_WAIT) {
|
||||
@ -110,10 +109,8 @@ _PR_MD_WAIT(PRThread *thread, PRIntervalTime ticks)
|
||||
}
|
||||
}
|
||||
return PR_SUCCESS;
|
||||
break;
|
||||
default:
|
||||
return PR_FAILURE;
|
||||
break;
|
||||
}
|
||||
}
|
||||
PRStatus
|
||||
|
Loading…
Reference in New Issue
Block a user