fix NAMED_USE_PTHREADS != yes usage.

This commit is contained in:
mrg 2010-11-06 21:32:49 +00:00
parent 736cac1e93
commit 634cf7a288
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.5 2010/08/06 10:58:03 christos Exp $
# $NetBSD: Makefile.inc,v 1.6 2010/11/06 21:32:49 mrg Exp $
.if !defined(BIND9_MAKEFILE_INC)
BIND9_MAKEFILE_INC=yes
@ -74,6 +74,7 @@ CPPFLAGS+= -DLIBINTERFACE=${LIBINTERFACE} \
.if ${NAMED_USE_PTHREADS} == "yes"
# XXX: Not ready yet
# CPPFLAGS+= -DISC_PLATFORM_USE_NATIVE_RWLOCKS
CPPFLAGS+= -DISC_PLATFORM_USETHREADS
.if !defined (LIB) || empty(LIB)
LDADD+= -lpthread
DPADD+= ${LIBPTHREAD}

View File

@ -207,7 +207,8 @@
/*
* Defined if we are using threads.
*/
#define ISC_PLATFORM_USETHREADS 1
/* Put in the Makefile */
/* #define ISC_PLATFORM_USETHREADS 1 */
/*
* Defined if unistd.h does not cause fd_set to be delared.