]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
compatibility fix: get_clocktime() is not always available
authorpwpiwi <pwpiwi@users.noreply.github.com>
Tue, 7 Apr 2020 07:04:47 +0000 (09:04 +0200)
committerGitHub <noreply@github.com>
Tue, 7 Apr 2020 07:04:47 +0000 (09:04 +0200)
client/comms.c

index b3b85fd2dad016ba1a7a518aecb1ca42d145109a..1391641d569ce9a3183933378e3983c3268ba657 100644 (file)
@@ -9,6 +9,8 @@
 // Code for communicating with the proxmark3 hardware.
 //-----------------------------------------------------------------------------
 
+#define _POSIX_C_SOURCE 199309L // need clock_gettime()
+
 #include "comms.h"
 
 #include <stdio.h>
@@ -17,6 +19,7 @@
 #include <pthread.h>
 #include <inttypes.h>
 #include <time.h>
+#include <sys/time.h>
 
 #include "uart.h"
 #include "ui.h"
Impressum, Datenschutz