Skip to content

Commit d29e058

Browse files
author
Hasnain Virk
committed
Check Ethernet before including lwipopts_conf.h
lwipopts_conf.h is used by target dependent Ethernet drivers for configuring various parameters. By default, Ethernet is enabled and in this case lwipopts_conf.h will be included. In case of PPP being enabled, it is desirable to not pull in any Ethernet related code.
1 parent f31ea01 commit d29e058

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

features/FEATURE_LWIP/lwip-interface/lwipopts.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
#ifndef LWIPOPTS_H
2020
#define LWIPOPTS_H
2121

22+
#if MBED_CONF_LWIP_ETHERNET_ENABLED
2223
#include "lwipopts_conf.h"
24+
#endif
2325

2426
// Workaround for Linux timeval
2527
#if defined (TOOLCHAIN_GCC)

0 commit comments

Comments
 (0)