From 513a27a961c70385fab4053a5d55161fec7167b2 Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Wed, 8 Sep 2010 09:50:50 -0700 Subject: [PATCH] make conditional on apple and have_gcd --- kdc/announce.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/kdc/announce.c b/kdc/announce.c index bfb6b8931..1a07c36f3 100644 --- a/kdc/announce.c +++ b/kdc/announce.c @@ -23,7 +23,9 @@ * */ -#ifdef __APPLE__ +#include "config.h" + +#if defined(__APPLE__) && defined(HAVE_GCD) #include #include @@ -525,10 +527,12 @@ register_notification(void) return store; } +#endif void bonjour_announce(krb5_context context, krb5_kdc_configuration *config) { +#if defined(__APPLE__) && defined(HAVE_GCD) g_queue = dispatch_queue_create("com.apple.kdc_announce", NULL); if (!g_queue) errx(1, "dispatch_queue_create"); @@ -538,6 +542,5 @@ bonjour_announce(krb5_context context, krb5_kdc_configuration *config) announce_context = context; create_dns_sd(); +#endif } - -#endif /* __APPLE__ */