From: pwpiwi Date: Tue, 7 Apr 2020 07:04:47 +0000 (+0200) Subject: compatibility fix: get_clocktime() is not always available X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/852ecedc16ee8220c8208828c55d14a668e69c30?hp=5bc3841ad1463e52834ee6e4a9afc5c4a98a2920 compatibility fix: get_clocktime() is not always available --- diff --git a/client/comms.c b/client/comms.c index b3b85fd2..1391641d 100644 --- a/client/comms.c +++ b/client/comms.c @@ -9,6 +9,8 @@ // Code for communicating with the proxmark3 hardware. //----------------------------------------------------------------------------- +#define _POSIX_C_SOURCE 199309L // need clock_gettime() + #include "comms.h" #include @@ -17,6 +19,7 @@ #include #include #include +#include #include "uart.h" #include "ui.h"