Module Name:    src
Committed By:   christos
Date:           Thu Nov 22 20:22:31 UTC 2012

Modified Files:
        src/lib/libc/nameser: ns_samedomain.c

Log Message:
don't compile the libc stuff twice.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libc/nameser/ns_samedomain.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/nameser/ns_samedomain.c
diff -u src/lib/libc/nameser/ns_samedomain.c:1.7 src/lib/libc/nameser/ns_samedomain.c:1.8
--- src/lib/libc/nameser/ns_samedomain.c:1.7	Thu Nov 15 11:43:30 2012
+++ src/lib/libc/nameser/ns_samedomain.c	Thu Nov 22 15:22:31 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: ns_samedomain.c,v 1.7 2012/11/15 16:43:30 christos Exp $	*/
+/*	$NetBSD: ns_samedomain.c,v 1.8 2012/11/22 20:22:31 christos Exp $	*/
 
 /*
  * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
@@ -22,7 +22,7 @@
 #ifdef notdef
 static const char rcsid[] = "Id: ns_samedomain.c,v 1.6 2005/04/27 04:56:40 sra Exp";
 #else
-__RCSID("$NetBSD: ns_samedomain.c,v 1.7 2012/11/15 16:43:30 christos Exp $");
+__RCSID("$NetBSD: ns_samedomain.c,v 1.8 2012/11/22 20:22:31 christos Exp $");
 #endif
 #endif
 
@@ -157,7 +157,7 @@ ns_subdomain(const char *a, const char *
 	return (ns_samename(a, b) != 1 && ns_samedomain(a, b));
 }
 #endif
-
+#ifdef _LIBC
 /*%
  *	make a canonical copy of domain name "src"
  *
@@ -212,5 +212,5 @@ ns_samename(const char *a, const char *b
 	else
 		return (0);
 }
-
+#endif
 /*! \file */

Reply via email to