summaryrefslogtreecommitdiffstats
path: root/lib/libc/resolv/res_init.c
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-12-15 05:37:09 +0000
committerngie <ngie@FreeBSD.org>2015-12-15 05:37:09 +0000
commita91f621c6e2380a9a23b0e3c8fcf784c09f5971c (patch)
treef6cad772fcb32461234b38af930488799cdf6d36 /lib/libc/resolv/res_init.c
parent2278607d5fdffd38d675b8d8bf0447e8a3eb23ea (diff)
downloadFreeBSD-src-a91f621c6e2380a9a23b0e3c8fcf784c09f5971c.zip
FreeBSD-src-a91f621c6e2380a9a23b0e3c8fcf784c09f5971c.tar.gz
Allow users override `DEBUG` on the command line via DEBUG_FLAGS="-DDEBUG" with
lib/libc/resolv by conditionalizing its definition MFC after: 3 days Reviewed by: ume, vangyzen Differential Revision: https://reviews.freebsd.org/D4519
Diffstat (limited to 'lib/libc/resolv/res_init.c')
-rw-r--r--lib/libc/resolv/res_init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/resolv/res_init.c b/lib/libc/resolv/res_init.c
index 8d59eba..8832342 100644
--- a/lib/libc/resolv/res_init.c
+++ b/lib/libc/resolv/res_init.c
@@ -116,7 +116,9 @@ __FBSDID("$FreeBSD$");
/*% Options. Should all be left alone. */
#define RESOLVSORT
-#define DEBUG
+#ifndef DEBUG
+#define DEBUG
+#endif
#ifdef SOLARIS2
#include <sys/systeminfo.h>
OpenPOWER on IntegriCloud