Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
161b5dcc
Commit
161b5dcc
authored
Sep 05, 2018
by
Ondřej Surý
Browse files
Remove NEED_PTHREAD_SCOPE_SYSTEM define that was needed on older FreeBSDs
parent
27507991
Changes
5
Hide whitespace changes
Inline
Side-by-side
acconfig.h
View file @
161b5dcc
...
...
@@ -17,8 +17,5 @@
***/
@
TOP
@
/* Define if threads need PTHREAD_SCOPE_SYSTEM */
#undef NEED_PTHREAD_SCOPE_SYSTEM
/* Define to 1 if you have the uname library function. */
#undef HAVE_UNAME
config.h.in
View file @
161b5dcc
...
...
@@ -17,9 +17,6 @@
*** it does not get installed.
***/
/* Define if threads need PTHREAD_SCOPE_SYSTEM */
#undef NEED_PTHREAD_SCOPE_SYSTEM
/* Define to 1 if you have the uname library function. */
#undef HAVE_UNAME
...
...
configure
View file @
161b5dcc
...
...
@@ -15216,25 +15216,6 @@ fi
done
#
# Additional OS-specific issues related to pthreads.
#
case "$host" in
*-freebsd*)
case $host in
*-freebsd5.[012]|*-freebsd5.[012].*);;
*-freebsd5.[3456789]|*-freebsd5.[3456789].*)
$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
;;
*-freebsd6.*)
$as_echo "#define NEED_PTHREAD_SCOPE_SYSTEM 1" >>confdefs.h
;;
esac
;;
esac
# Look for functions relating to thread naming
for ac_func in pthread_setname_np pthread_set_name_np
do :
...
...
configure.in
View file @
161b5dcc
...
...
@@ -701,23 +701,6 @@ AC_CHECK_HEADERS([sched.h])
AC_SEARCH_LIBS([sched_yield],[rt])
AC_CHECK_FUNCS([sched_yield pthread_yield pthread_yield_np])
#
# Additional OS-specific issues related to pthreads.
#
case "$host" in
*-freebsd*)
case $host in
*-freebsd5.[[012]]|*-freebsd5.[[012]].*);;
*-freebsd5.[[3456789]]|*-freebsd5.[[3456789]].*)
AC_DEFINE(NEED_PTHREAD_SCOPE_SYSTEM)
;;
*-freebsd6.*)
AC_DEFINE(NEED_PTHREAD_SCOPE_SYSTEM)
;;
esac
;;
esac
# Look for functions relating to thread naming
AC_CHECK_FUNCS([pthread_setname_np pthread_set_name_np])
AC_CHECK_HEADERS([pthread_np.h], [], [], [#include <pthread.h>])
...
...
lib/isc/pthreads/thread.c
View file @
161b5dcc
...
...
@@ -51,12 +51,6 @@ isc_thread_create(isc_threadfunc_t func, isc_threadarg_t arg,
}
#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
);
if
(
ret
!=
0
)
return
(
ISC_R_UNEXPECTED
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment