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:
wchang0222%aol.com 2004-02-04 01:40:56 +00:00
parent e33a7da3bb
commit c9b18bb73f
3 changed files with 13 additions and 3 deletions

7
nsprpub/configure vendored
View File

@ -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

View File

@ -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

View File

@ -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"