esc() is only used if dladdr(3) is available
This commit is contained in:
@@ -52,18 +52,6 @@ struct private_backtrace_t {
|
|||||||
void *frames[];
|
void *frames[];
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
|
||||||
* Same as tty_escape_get(), but for a potentially NULL FILE*
|
|
||||||
*/
|
|
||||||
static char* esc(FILE *file, tty_escape_t escape)
|
|
||||||
{
|
|
||||||
if (file)
|
|
||||||
{
|
|
||||||
return tty_escape_get(fileno(file), escape);
|
|
||||||
}
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Write a format string with arguments to a FILE line, if it is NULL to DBG
|
* Write a format string with arguments to a FILE line, if it is NULL to DBG
|
||||||
*/
|
*/
|
||||||
@@ -87,6 +75,19 @@ static void println(FILE *file, char *format, ...)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_DLADDR
|
#ifdef HAVE_DLADDR
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Same as tty_escape_get(), but for a potentially NULL FILE*
|
||||||
|
*/
|
||||||
|
static char* esc(FILE *file, tty_escape_t escape)
|
||||||
|
{
|
||||||
|
if (file)
|
||||||
|
{
|
||||||
|
return tty_escape_get(fileno(file), escape);
|
||||||
|
}
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef HAVE_BFD_H
|
#ifdef HAVE_BFD_H
|
||||||
|
|
||||||
#include <bfd.h>
|
#include <bfd.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user