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 git-svn-id: svn://10.0.0.236/trunk@227047 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
605dfc0ad0
commit
86376b8166
1
mozilla/nsprpub/configure
vendored
1
mozilla/nsprpub/configure
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user