mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
1781. [port] FreeBSD 5.3: set PTHREAD_SCOPE_SYSTEM. [RT #12810]
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
1782. [placeholder] rt13219
|
1782. [placeholder] rt13219
|
||||||
|
|
||||||
1781. [placeholder] rt12810
|
1781. [port] FreeBSD 5.3: set PTHREAD_SCOPE_SYSTEM. [RT #12810]
|
||||||
|
|
||||||
1780. [bug] Update libtool to 1.5.10.
|
1780. [bug] Update libtool to 1.5.10.
|
||||||
|
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: acconfig.h,v 1.46 2004/10/05 03:17:16 marka Exp $ */
|
/* $Id: acconfig.h,v 1.47 2004/12/04 06:47:02 marka Exp $ */
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*** This file is not to be included by any public header files, because
|
*** This file is not to be included by any public header files, because
|
||||||
@@ -142,3 +142,6 @@ int sigwait(const unsigned int *set, int *sig);
|
|||||||
|
|
||||||
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
|
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
|
||||||
#undef ISC_SOCKADDR_LEN_T
|
#undef ISC_SOCKADDR_LEN_T
|
||||||
|
|
||||||
|
/* Define if threads need PTHREAD_SCOPE_SYSTEM */
|
||||||
|
#undef NEED_PTHREAD_SCOPE_SYSTEM
|
||||||
|
@@ -16,7 +16,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: config.h.in,v 1.63 2004/10/05 03:17:16 marka Exp $ */
|
/* $Id: config.h.in,v 1.64 2004/12/04 06:48:43 marka Exp $ */
|
||||||
|
|
||||||
/***
|
/***
|
||||||
*** This file is not to be included by any public header files, because
|
*** This file is not to be included by any public header files, because
|
||||||
@@ -143,6 +143,9 @@ int sigwait(const unsigned int *set, int *sig);
|
|||||||
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
|
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
|
||||||
#undef ISC_SOCKADDR_LEN_T
|
#undef ISC_SOCKADDR_LEN_T
|
||||||
|
|
||||||
|
/* Define if threads need PTHREAD_SCOPE_SYSTEM */
|
||||||
|
#undef NEED_PTHREAD_SCOPE_SYSTEM
|
||||||
|
|
||||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||||
#undef HAVE_DLFCN_H
|
#undef HAVE_DLFCN_H
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl
|
|||||||
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
|
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
|
||||||
AC_DIVERT_POP()dnl
|
AC_DIVERT_POP()dnl
|
||||||
|
|
||||||
AC_REVISION($Revision: 1.366 $)
|
AC_REVISION($Revision: 1.367 $)
|
||||||
|
|
||||||
AC_INIT(lib/dns/name.c)
|
AC_INIT(lib/dns/name.c)
|
||||||
AC_PREREQ(2.13)
|
AC_PREREQ(2.13)
|
||||||
@@ -789,6 +789,11 @@ then
|
|||||||
#
|
#
|
||||||
*-freebsd*)
|
*-freebsd*)
|
||||||
AC_CHECK_LIB(c_r, sigwait, AC_DEFINE(HAVE_SIGWAIT),)
|
AC_CHECK_LIB(c_r, sigwait, AC_DEFINE(HAVE_SIGWAIT),)
|
||||||
|
case $host in
|
||||||
|
*-freebsd5.3|*-freebsd5.3.*)
|
||||||
|
AC_DEFINE(NEED_PTHREAD_SCOPE_SYSTEM)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
;;
|
;;
|
||||||
#
|
#
|
||||||
# BSDI 3.0 through 4.0.1 needs pthread_init() to be
|
# BSDI 3.0 through 4.0.1 needs pthread_init() to be
|
||||||
|
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: thread.c,v 1.12 2004/03/05 05:11:17 marka Exp $ */
|
/* $Id: thread.c,v 1.13 2004/12/04 06:47:03 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@@ -49,6 +49,12 @@ isc_thread_create(isc_threadfunc_t func, isc_threadarg_t arg,
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(PTHREAD_SCOPE_SYSTEM) && defined(NEED_PTHREAD_SCOPE_SYSTEM)
|
||||||
|
ret = pthread_attr_setscope(&attr, PTHREAD_SCOPE_SYSTEM);
|
||||||
|
if (ret != 0)
|
||||||
|
return (ISC_R_UNEXPECTED);
|
||||||
|
#endif
|
||||||
|
|
||||||
ret = pthread_create(thread, &attr, func, arg);
|
ret = pthread_create(thread, &attr, func, arg);
|
||||||
if (ret != 0)
|
if (ret != 0)
|
||||||
return (ISC_R_UNEXPECTED);
|
return (ISC_R_UNEXPECTED);
|
||||||
|
Reference in New Issue
Block a user