From: Michael Farrell Date: Fri, 23 Dec 2016 07:35:50 +0000 (+1000) Subject: Fix some missing include statements which impact using proxmark3 client as a library. X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/faad338efefc02a8a91eaa0ca87ae630e31a5980?hp=62d0bbf62f5bd3c1da25ee2adf60d3b4efe24cc8 Fix some missing include statements which impact using proxmark3 client as a library. --- 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