make this compile when we don't use threads.
This commit is contained in:
parent
8f6ac0b894
commit
deeaa98b3a
6
dist/bind/lib/isc/unix/app.c
vendored
6
dist/bind/lib/isc/unix/app.c
vendored
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: app.c,v 1.4 2005/12/22 00:26:24 christos Exp $ */
|
||||
/* $NetBSD: app.c,v 1.5 2005/12/22 15:14:12 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")
|
||||
@ -297,7 +297,7 @@ isc_app_onrun(isc_mem_t *mctx, isc_task_t *task, isc_taskaction_t action,
|
||||
* Event loop for nonthreaded programs.
|
||||
*/
|
||||
static isc_result_t
|
||||
evloop() {
|
||||
evloop(void) {
|
||||
isc_result_t result;
|
||||
while (!want_shutdown) {
|
||||
int n;
|
||||
@ -434,10 +434,10 @@ isc_app_run(void) {
|
||||
#ifdef ISC_PLATFORM_USETHREADS
|
||||
sigset_t sset;
|
||||
char strbuf[ISC_STRERRORSIZE];
|
||||
#endif /* ISC_PLATFORM_USETHREADS */
|
||||
#ifdef HAVE_SIGWAIT
|
||||
int sig;
|
||||
#endif
|
||||
#endif /* ISC_PLATFORM_USETHREADS */
|
||||
|
||||
#ifdef HAVE_LINUXTHREADS
|
||||
REQUIRE(main_thread == pthread_self());
|
||||
|
Loading…
Reference in New Issue
Block a user