diff --git a/hardware.c b/hardware.c
index 716ed75..d9989a1 100644
--- a/hardware.c
+++ b/hardware.c
@@ -21,6 +21,7 @@ along with this program. If not, see .
#include
#include
#include
+#include
#include "hardware.h"
#include "user_io.h"
@@ -52,9 +53,10 @@ void hexdump(void *data, uint16_t size, uint16_t offset)
unsigned long GetTimer(unsigned long offset)
{
struct timespec tp;
- clock_gettime(CLOCK_BOOTTIME, &tp);
- unsigned long long res;
+ clock_gettime(CLOCK_BOOTTIME, &tp);
+
+ uint64_t res;
res = tp.tv_sec;
res *= 1000;