From 5a08a2da6021292129d7d746d426f1471de64508 Mon Sep 17 00:00:00 2001 From: sbruno Date: Wed, 30 Oct 2013 22:45:35 +0000 Subject: [PATCH] Queisce warning about undeclared function usage. yp_get_default_domain is defined in workaround.c but is not declared in any header file. Tie the declaration to the same #define conditional used when the function is called, NETGROUP --- contrib/tcp_wrappers/hosts_access.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contrib/tcp_wrappers/hosts_access.c b/contrib/tcp_wrappers/hosts_access.c index c903705b80a4..af0433b0391b 100644 --- a/contrib/tcp_wrappers/hosts_access.c +++ b/contrib/tcp_wrappers/hosts_access.c @@ -103,6 +103,11 @@ static int masked_match6(); #define BUFLEN 2048 +/* definition to be used from workarounds.c */ +#ifdef NETGROUP +int yp_get_default_domain(char **); +#endif + /* hosts_access - host access control facility */ int hosts_access(request)