Date: Fri, 18 Dec 2015 06:58:44 +0000 (UTC) From: Garrett Cooper <ngie@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r292430 - stable/10/lib/libc/resolv Message-ID: <201512180658.tBI6wiU1074754@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ngie Date: Fri Dec 18 06:58:44 2015 New Revision: 292430 URL: https://svnweb.freebsd.org/changeset/base/292430 Log: MFC r292250: Allow users override `DEBUG` on the command line via DEBUG_FLAGS="-DDEBUG" with lib/libc/resolv by conditionalizing its definition Reviewed by: ume, vangyzen Differential Revision: https://reviews.freebsd.org/D4519 Modified: stable/10/lib/libc/resolv/res_init.c stable/10/lib/libc/resolv/res_mkquery.c stable/10/lib/libc/resolv/res_mkupdate.c stable/10/lib/libc/resolv/res_query.c stable/10/lib/libc/resolv/res_send.c Directory Properties: stable/10/ (props changed) Modified: stable/10/lib/libc/resolv/res_init.c ============================================================================== --- stable/10/lib/libc/resolv/res_init.c Fri Dec 18 06:13:18 2015 (r292429) +++ stable/10/lib/libc/resolv/res_init.c Fri Dec 18 06:58:44 2015 (r292430) @@ -115,7 +115,9 @@ __FBSDID("$FreeBSD$"); /*% Options. Should all be left alone. */ #define RESOLVSORT -#define DEBUG +#ifndef DEBUG +#define DEBUG +#endif #ifdef SOLARIS2 #include <sys/systeminfo.h> Modified: stable/10/lib/libc/resolv/res_mkquery.c ============================================================================== --- stable/10/lib/libc/resolv/res_mkquery.c Fri Dec 18 06:13:18 2015 (r292429) +++ stable/10/lib/libc/resolv/res_mkquery.c Fri Dec 18 06:58:44 2015 (r292430) @@ -83,7 +83,9 @@ __FBSDID("$FreeBSD$"); #include "port_after.h" /* Options. Leave them on. */ -#define DEBUG +#ifndef DEBUG +#define DEBUG +#endif extern const char *_res_opcodes[]; Modified: stable/10/lib/libc/resolv/res_mkupdate.c ============================================================================== --- stable/10/lib/libc/resolv/res_mkupdate.c Fri Dec 18 06:13:18 2015 (r292429) +++ stable/10/lib/libc/resolv/res_mkupdate.c Fri Dec 18 06:58:44 2015 (r292430) @@ -54,7 +54,9 @@ __FBSDID("$FreeBSD$"); #include "port_after.h" /* Options. Leave them on. */ -#define DEBUG +#ifndef DEBUG +#define DEBUG +#endif #define MAXPORT 1024 static int getnum_str(u_char **, u_char *); Modified: stable/10/lib/libc/resolv/res_query.c ============================================================================== --- stable/10/lib/libc/resolv/res_query.c Fri Dec 18 06:13:18 2015 (r292429) +++ stable/10/lib/libc/resolv/res_query.c Fri Dec 18 06:58:44 2015 (r292430) @@ -88,7 +88,9 @@ __FBSDID("$FreeBSD$"); #include "port_after.h" /* Options. Leave them on. */ -#define DEBUG +#ifndef DEBUG +#define DEBUG +#endif #if PACKETSZ > 1024 #define MAXPACKET PACKETSZ Modified: stable/10/lib/libc/resolv/res_send.c ============================================================================== --- stable/10/lib/libc/resolv/res_send.c Fri Dec 18 06:13:18 2015 (r292429) +++ stable/10/lib/libc/resolv/res_send.c Fri Dec 18 06:58:44 2015 (r292430) @@ -119,7 +119,9 @@ __FBSDID("$FreeBSD$"); #include "un-namespace.h" /* Options. Leave them on. */ -#define DEBUG +#ifndef DEBUG +#define DEBUG +#endif #include "res_debug.h" #include "res_private.h"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512180658.tBI6wiU1074754>