compatibility fix: get_clocktime() is not always available

This commit is contained in:
pwpiwi 2020-04-07 09:04:47 +02:00 committed by GitHub
parent 5bc3841ad1
commit 852ecedc16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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"