summaryrefslogtreecommitdiffstats
path: root/lib/libc/nameser/ns_samedomain.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/nameser/ns_samedomain.c')
-rw-r--r--lib/libc/nameser/ns_samedomain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libc/nameser/ns_samedomain.c b/lib/libc/nameser/ns_samedomain.c
index a720f6a..9c43c79 100644
--- a/lib/libc/nameser/ns_samedomain.c
+++ b/lib/libc/nameser/ns_samedomain.c
@@ -18,6 +18,8 @@
#ifndef lint
static const char rcsid[] = "$Id: ns_samedomain.c,v 1.5.18.1 2005/04/27 05:01:09 sra Exp $";
#endif
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include "port_before.h"
@@ -141,6 +143,7 @@ ns_samedomain(const char *a, const char *b) {
return (strncasecmp(cp, b, lb) == 0);
}
+#ifndef _LIBC
/*%
* is "a" a subdomain of "b"?
*/
@@ -148,6 +151,7 @@ int
ns_subdomain(const char *a, const char *b) {
return (ns_samename(a, b) != 1 && ns_samedomain(a, b));
}
+#endif
/*%
* make a canonical copy of domain name "src"
OpenPOWER on IntegriCloud