Skip to content
Snippets Groups Projects
Unverified Commit fdc79c57 authored by David Bauer's avatar David Bauer Committed by GitHub
Browse files

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: default avatarDavid Bauer <mail@david-bauer.net>
parent 703c8e64
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -8,6 +8,6 @@
#ifndef _GLUON_ARP_LIMITER_H_
#define _GLUON_ARP_LIMITER_H_
int clock;
extern int clock;
#endif /* _GLUON_ARP_LIMITER_H_ */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment