diff options
author | Sergei Golubchik <sergii@pisem.net> | 2011-11-02 12:26:30 +0100 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2011-11-02 12:26:30 +0100 |
commit | 7714adaef85cb7d83b1624db2198aec40ddefa24 (patch) | |
tree | 8a9059db14b7e408d98e964777efcda3bf7c9760 /dbug/dbug.c | |
parent | 952e4067ad54f87394bf48a2a6beb286a1613d8f (diff) | |
download | mariadb-git-7714adaef85cb7d83b1624db2198aec40ddefa24.tar.gz |
build on windows
Diffstat (limited to 'dbug/dbug.c')
-rw-r--r-- | dbug/dbug.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c index 63b373921be..16ac5277707 100644 --- a/dbug/dbug.c +++ b/dbug/dbug.c @@ -86,6 +86,8 @@ #include <m_string.h> #include <errno.h> +#ifndef DBUG_OFF + #ifdef HAVE_FNMATCH_H #include <fnmatch.h> #else @@ -424,7 +426,7 @@ void _db_process_(const char *name) * 0 - a list of functions was not changed */ -int DbugParse(CODE_STATE *cs, const char *control) +static int DbugParse(CODE_STATE *cs, const char *control) { const char *end; int rel, f_used=0; @@ -661,8 +663,8 @@ int DbugParse(CODE_STATE *cs, const char *control) (ListFlags(cs->stack->functions) & INCLUDE) ? \ 0 : (uint)TRACE_ON) -void FixTraceFlags_helper(CODE_STATE *cs, const char *func, - struct _db_stack_frame_ *framep) +static void FixTraceFlags_helper(CODE_STATE *cs, const char *func, + struct _db_stack_frame_ *framep) { if (framep->prev) FixTraceFlags_helper(cs, framep->func, framep->prev); @@ -687,7 +689,7 @@ void FixTraceFlags_helper(CODE_STATE *cs, const char *func, #define fflags(cs) cs->stack->out_file ? ListFlags(cs->stack->functions) : TRACE_ON; -void FixTraceFlags(uint old_fflags, CODE_STATE *cs) +static void FixTraceFlags(uint old_fflags, CODE_STATE *cs) { const char *func; uint new_fflags, traceon, level; @@ -2491,3 +2493,5 @@ static void sf_terminate() return; } + +#endif /* DBUG_OFF */ |