mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bugzilla bug 232120: added support for NetBSD's pthread library. The patch
is contributed by Shin'ichiro TAYA <taya@netbsd.org>. r=wtc. Modified Files: configure configure.in ptio.c
This commit is contained in:
parent
e33a7da3bb
commit
c9b18bb73f
7
nsprpub/configure
vendored
7
nsprpub/configure
vendored
@ -5243,7 +5243,12 @@ EOF
|
||||
_PTHREAD_LDFLAGS="-lc_r"
|
||||
fi
|
||||
;;
|
||||
*-openbsd*|*-bsdi*|*-netbsd*)
|
||||
*-netbsd*)
|
||||
if test "$ac_cv_have_dash_pthread" = "yes"; then
|
||||
_PTHREAD_LDFLAGS="-pthread"
|
||||
fi
|
||||
;;
|
||||
*-openbsd*|*-bsdi*)
|
||||
cat >> confdefs.h <<\EOF
|
||||
#define _THREAD_SAFE 1
|
||||
EOF
|
||||
|
@ -2190,7 +2190,12 @@ if test -n "$USE_PTHREADS"; then
|
||||
_PTHREAD_LDFLAGS="-lc_r"
|
||||
fi
|
||||
;;
|
||||
*-openbsd*|*-bsdi*|*-netbsd*)
|
||||
*-netbsd*)
|
||||
if test "$ac_cv_have_dash_pthread" = "yes"; then
|
||||
_PTHREAD_LDFLAGS="-pthread"
|
||||
fi
|
||||
;;
|
||||
*-openbsd*|*-bsdi*)
|
||||
AC_DEFINE(_THREAD_SAFE)
|
||||
dnl -pthread links in -lc_r, so don't specify it explicitly.
|
||||
if test "$ac_cv_have_dash_pthread" = "yes"; then
|
||||
|
@ -205,7 +205,7 @@ static PRBool _pr_ipv6_v6only_on_by_default;
|
||||
#elif defined(IRIX) || defined(OSF1) || defined(AIX) || defined(HPUX) \
|
||||
|| defined(LINUX) || defined(FREEBSD) || defined(BSDI) || defined(VMS) \
|
||||
|| defined(NTO) || defined(OPENBSD) || defined(DARWIN) \
|
||||
|| defined(UNIXWARE)
|
||||
|| defined(UNIXWARE) || defined(NETBSD)
|
||||
#define _PRSockOptVal_t void *
|
||||
#else
|
||||
#error "Cannot determine architecture"
|
||||
|
Loading…
Reference in New Issue
Block a user