BUILD: trace: include tools.h

If the TRACE option is used when compiling the haproxy source,
the following error occurs on debian 9.13:

src/calltrace.o: In function `make_line':
.../src/calltrace.c:204: undefined reference to `rdtsc'
src/calltrace.o: In function `calltrace':
.../src/calltrace.c:277: undefined reference to `rdtsc'
collect2: error: ld returned 1 exit status
Makefile:866: recipe for target 'haproxy' failed
This commit is contained in:
Miroslav Zagorac 2020-09-24 09:15:46 +02:00 committed by Willy Tarreau
parent 82cd028d71
commit a6aca669b5

View File

@ -49,6 +49,7 @@
#include <string.h>
#include <haproxy/api.h>
#include <haproxy/time.h>
#include <haproxy/tools.h>
static FILE *log;
static int level;