diff --git a/server/pcaptxthread.cpp b/server/pcaptxthread.cpp
index cab98e0..b01e4bb 100644
--- a/server/pcaptxthread.cpp
+++ b/server/pcaptxthread.cpp
@@ -22,6 +22,9 @@ along with this program. If not, see
#include "statstuple.h"
#include "timestamp.h"
+#define __STDC_FORMAT_MACROS
+#include
+
PcapTxThread::PcapTxThread(const char *device)
{
char errbuf[PCAP_ERRBUF_SIZE] = "";