From 565596a5af18f7f7f9157a581f3db87ecd4a630b Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 6 Mar 2020 15:32:12 -0800 Subject: [PATCH] ETHER: Minor adjustments for building on the simh 3.x codebase --- sim_ether.c | 2 +- sim_ether.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sim_ether.c b/sim_ether.c index 5231793b..64182cf5 100644 --- a/sim_ether.c +++ b/sim_ether.c @@ -3840,7 +3840,7 @@ else /* test reflections. This is done early in this routine since eth_reflect */ /* calls eth_filter recursively and thus changes the state of the device. */ if (dev->reflections == -1) - eth_reflect(dev); + status = eth_reflect(dev); /* set new filter addresses */ for (i = 0; i < addr_count; i++) diff --git a/sim_ether.h b/sim_ether.h index ecada302..598f8b89 100644 --- a/sim_ether.h +++ b/sim_ether.h @@ -381,6 +381,11 @@ t_stat ethq_destroy(ETH_QUE* que); /* release FIFO queue */ const char *eth_capabilities(void); t_stat sim_ether_test (DEVICE *dptr); /* unit test routine */ +#if !defined(SIM_TEST_INIT) /* Need stubs for test APIs */ +#define SIM_TEST_INIT +#define SIM_TEST(xxx) +#endif + #ifdef __cplusplus } #endif