From 8f08ff1308e3e61deec3fda7b6ea5a348acfa771 Mon Sep 17 00:00:00 2001 From: George Oikonomou Date: Wed, 28 Feb 2018 12:51:26 +0000 Subject: [PATCH] Add missing extern keyword GCC assumes extern, but other toolchains complain about multiple variable definition at files including this header. --- os/net/mac/tsch/tsch-private.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/os/net/mac/tsch/tsch-private.h b/os/net/mac/tsch/tsch-private.h index ec114813e..fd2d9d42b 100644 --- a/os/net/mac/tsch/tsch-private.h +++ b/os/net/mac/tsch/tsch-private.h @@ -94,9 +94,9 @@ extern struct tsch_asn_divisor_t tsch_hopping_sequence_length; /* TSCH timeslot timing (in rtimer ticks) */ extern rtimer_clock_t tsch_timing[tsch_ts_elements_count]; /* Statistics on the current session */ -unsigned long tx_count; -unsigned long rx_count; -unsigned long sync_count; +extern unsigned long tx_count; +extern unsigned long rx_count; +extern unsigned long sync_count; /* TSCH processes */ PROCESS_NAME(tsch_process);