From 01c725fcdf05783af307996ce7753db80ab9e5e1 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sat, 4 Oct 2014 12:44:05 -0700 Subject: [PATCH] ETHER: Avoid compiling internal support routines for simulators which don't have ethernet devices --- sim_ether.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sim_ether.c b/sim_ether.c index dee1c331..ba667194 100644 --- a/sim_ether.c +++ b/sim_ether.c @@ -672,6 +672,7 @@ void eth_zero(ETH_DEV* dev) static ETH_DEV **eth_open_devices = NULL; static int eth_open_device_count = 0; +#if defined (USE_NETWORK) || defined (USE_SHARED) static void _eth_add_to_open_list (ETH_DEV* dev) { eth_open_devices = (ETH_DEV**)realloc(eth_open_devices, (eth_open_device_count+1)*sizeof(*eth_open_devices)); @@ -690,6 +691,7 @@ for (i=0; i