gluon-ebtables-limit-arp: declare clock as extern (#2343)

Declare the clock variable as extern in the header file.

Fixes compilation of gluon-ebtables-limit-arp with OpenWrt master:

multiple definition of `clock'; /gluon/openwrt/tmp/ccuynR0G.o:(.bss+0x230): first defined here

Signed-off-by: David Bauer <mail@david-bauer.net>
This commit is contained in:
David Bauer 2021-12-20 17:37:51 +01:00 committed by GitHub
parent 703c8e64c6
commit fdc79c5721
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -25,6 +25,8 @@
static struct addr_store ip_store;
static struct addr_store mac_store;
int clock;
char *addr_mac_ntoa(void *addr)
{
return mac_ntoa((struct mac_addr *)addr);

View File

@ -8,6 +8,6 @@
#ifndef _GLUON_ARP_LIMITER_H_
#define _GLUON_ARP_LIMITER_H_
int clock;
extern int clock;
#endif /* _GLUON_ARP_LIMITER_H_ */