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