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
 Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH


git-svn-id: svn://10.0.0.236/branches/NSPRPUB_PRE_4_2_CLIENT_BRANCH@152263 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
wchang0222%aol.com
2004-02-04 01:31:33 +00:00
parent 310a50d006
commit 93d3d4933d
3 changed files with 13 additions and 3 deletions

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"