From faad338efefc02a8a91eaa0ca87ae630e31a5980 Mon Sep 17 00:00:00 2001 From: Michael Farrell Date: Fri, 23 Dec 2016 17:35:50 +1000 Subject: [PATCH] Fix some missing include statements which impact using proxmark3 client as a library. --- client/nonce2key/nonce2key.h | 1 + client/util.c | 2 ++ client/util.h | 1 + 3 files changed, 4 insertions(+) diff --git a/client/nonce2key/nonce2key.h b/client/nonce2key/nonce2key.h index 026b8cfc..807c2f2f 100644 --- a/client/nonce2key/nonce2key.h +++ b/client/nonce2key/nonce2key.h @@ -20,6 +20,7 @@ #include "common.h" #include "mifare.h" // nonces_t struct #include "ui.h" // PrintAndLog +#include "util.h" // FALSE / TRUE #include "proxmark3.h" #include "mifarehost.h" diff --git a/client/util.c b/client/util.c index 0d24ac8e..f70b5aed 100644 --- a/client/util.c +++ b/client/util.c @@ -12,6 +12,8 @@ #define MAX_BIN_BREAK_LENGTH (3072+384+1) #ifndef _WIN32 +#include + int ukbhit(void) { int cnt = 0; int error; diff --git a/client/util.h b/client/util.h index c92493e8..701662c3 100644 --- a/client/util.h +++ b/client/util.h @@ -14,6 +14,7 @@ #include #include #include // math.pow +#include // time, gmtime #include "proxmark3.h" // time_t #include "data.h" // for FILE_PATH_SIZE -- 2.39.2