зеркало из https://github.com/mozilla/pjs.git
Bug 371247: checked in some changes for OpenBSD. The patch is contributed
by Martynas Venckus <martynas@openbsd.org>. r=nelsonb,wtc. Modified Files: configure configure.in lib/tests/Makefile.in _openbsd.cfg _openbsd.h prnetdb.c
This commit is contained in:
Родитель
0e7fefa925
Коммит
f416c6c0e0
|
@ -4377,6 +4377,7 @@ EOF
|
|||
DSO_CFLAGS=-fPIC
|
||||
MDCPUCFG_H=_openbsd.cfg
|
||||
PR_MD_CSRCS=openbsd.c
|
||||
OS_LIBS="-lc"
|
||||
if test -z "$USE_NSPR_THREADS"; then
|
||||
USE_PTHREADS=1
|
||||
fi
|
||||
|
|
|
@ -1751,6 +1751,7 @@ mips-sony-newsos*)
|
|||
DSO_CFLAGS=-fPIC
|
||||
MDCPUCFG_H=_openbsd.cfg
|
||||
PR_MD_CSRCS=openbsd.c
|
||||
OS_LIBS="-lc"
|
||||
if test -z "$USE_NSPR_THREADS"; then
|
||||
USE_PTHREADS=1
|
||||
fi
|
||||
|
|
|
@ -127,6 +127,12 @@ ifeq ($(OS_ARCH), Linux)
|
|||
endif
|
||||
endif
|
||||
|
||||
ifeq (,$(filter-out OpenBSD,$(OS_ARCH)))
|
||||
ifeq ($(USE_PTHREADS),1)
|
||||
EXTRA_LIBS = -lpthread
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(OS_ARCH), OSF1)
|
||||
LDOPTS += -rpath $(PWD)/$(dist_libdir) -lpthread
|
||||
endif
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
|
||||
#define PR_AF_INET6 24 /* same as AF_INET6 */
|
||||
|
||||
#if defined(__i386__)
|
||||
#if defined(__i386__) || defined(__arm__)
|
||||
|
||||
#define IS_LITTLE_ENDIAN 1
|
||||
#undef IS_BIG_ENDIAN
|
||||
|
|
|
@ -54,9 +54,11 @@
|
|||
#define _PR_SI_ARCHITECTURE "powerpc"
|
||||
#elif defined(__sparc__)
|
||||
#define _PR_SI_ARCHITECTURE "sparc"
|
||||
#elif defined(__arm__)
|
||||
#define _PR_SI_ARCHITECTURE "arm"
|
||||
#endif
|
||||
|
||||
#define PR_DLL_SUFFIX ".so.1.0"
|
||||
#define PR_DLL_SUFFIX ".so"
|
||||
|
||||
#define _PR_VMBASE 0x30000000
|
||||
#define _PR_STACK_VMBASE 0x50000000
|
||||
|
@ -97,6 +99,8 @@
|
|||
#define JB_SP_INDEX 34
|
||||
#elif defined(__amd64__)
|
||||
#define JB_SP_INDEX 6
|
||||
#elif defined(__arm__)
|
||||
#define JB_SP_INDEX 23
|
||||
#else
|
||||
#error "Need to define SP index in jmp_buf here"
|
||||
#endif
|
||||
|
|
|
@ -103,7 +103,8 @@ PRLock *_pr_dnsLock = NULL;
|
|||
#if defined(OSF1) \
|
||||
|| defined(AIX4_3_PLUS) || (defined(AIX) && defined(_THREAD_SAFE)) \
|
||||
|| (defined(HPUX10_10) && defined(_REENTRANT)) \
|
||||
|| (defined(HPUX10_20) && defined(_REENTRANT))
|
||||
|| (defined(HPUX10_20) && defined(_REENTRANT)) \
|
||||
|| defined(OPENBSD)
|
||||
#define _PR_HAVE_GETPROTO_R
|
||||
#define _PR_HAVE_GETPROTO_R_INT
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче