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
This commit is contained in:
Enji Cooper 2015-12-15 05:37:09 +00:00
parent d876d6c34a
commit 8a615d0fa8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=292250
5 changed files with 15 additions and 5 deletions

View file

@ -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>

View file

@ -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[];

View file

@ -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 *);

View file

@ -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

View file

@ -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"