summaryrefslogtreecommitdiff
path: root/base/stats/events.hh
diff options
context:
space:
mode:
Diffstat (limited to 'base/stats/events.hh')
-rw-r--r--base/stats/events.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/stats/events.hh b/base/stats/events.hh
index 8b3212bed..2a23240b4 100644
--- a/base/stats/events.hh
+++ b/base/stats/events.hh
@@ -32,12 +32,13 @@
#include <string>
#include "base/trace.hh"
+#include "config/use_mysql.hh"
namespace Stats {
extern Tick EventStart;
-#ifdef USE_MYSQL
+#if USE_MYSQL
void __event(const std::string &stat);
bool MySqlConnected();
#endif
@@ -52,7 +53,7 @@ recordEvent(const std::string &stat)
DPRINTF(StatEvents, "Statistics Event: %s\n", stat);
-#ifdef USE_MYSQL
+#if USE_MYSQL
if (!MySqlConnected())
return;