diff --git a/features/netsocket/emac-drivers/TARGET_Freescale/k64f_emac.cpp b/features/netsocket/emac-drivers/TARGET_Freescale/k64f_emac.cpp index 2f35428d5c..88cfe6a149 100644 --- a/features/netsocket/emac-drivers/TARGET_Freescale/k64f_emac.cpp +++ b/features/netsocket/emac-drivers/TARGET_Freescale/k64f_emac.cpp @@ -42,7 +42,7 @@ #include "netsocket/nsapi_types.h" #include "mbed_shared_queues.h" -#if DEVICE_EMAC +#ifdef ENET_BASE #include "fsl_phy.h" @@ -614,7 +614,7 @@ MBED_WEAK EMAC &EMAC::get_default_instance() { * @} */ -#endif // DEVICE_EMAC +#endif // ENET_BASE /* --------------------------------- End Of File ------------------------------ */ diff --git a/features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp b/features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp index a52ec8c61c..073b368b96 100644 --- a/features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp +++ b/features/netsocket/emac-drivers/TARGET_STM/stm32xx_emac.cpp @@ -7,7 +7,7 @@ #include "mbed_shared_queues.h" #include "netsocket/nsapi_types.h" -#if DEVICE_EMAC +#ifdef ETH_BASE #include "stm32xx_emac_config.h" #include "stm32xx_emac.h"