mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
added HAVE_TIME checks
This commit is contained in:
parent
ff4d69d2cb
commit
0bece81e86
@ -189,9 +189,11 @@ typedef struct {
|
||||
// errands
|
||||
hci_authentication_flags_t authentication_flags;
|
||||
|
||||
#ifdef HAVE_TIME
|
||||
// timer
|
||||
timer_source_t timeout;
|
||||
struct timeval timestamp;
|
||||
#endif
|
||||
|
||||
// ACL packet recombination
|
||||
uint8_t acl_recombination_buffer[HCI_ACL_3DH5_SIZE]; // max packet: DH5 = header(4) + payload (339)
|
||||
|
@ -39,12 +39,15 @@
|
||||
|
||||
#include <btstack/run_loop.h>
|
||||
|
||||
#ifdef HAVE_TIME
|
||||
#include <sys/time.h>
|
||||
|
||||
// compare timeval or timers - NULL is assumed to be before the Big Bang
|
||||
int run_loop_timeval_compare(struct timeval *a, struct timeval *b);
|
||||
int run_loop_timer_compare(timer_source_t *a, timer_source_t *b);
|
||||
|
||||
#endif
|
||||
|
||||
//
|
||||
void run_loop_timer_dump();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user