mirror of https://github.com/ARMmbed/mbed-os.git
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.pull/4523/head
parent
f31ea01237
commit
d29e05896f
|
@ -19,7 +19,9 @@
|
||||||
#ifndef LWIPOPTS_H
|
#ifndef LWIPOPTS_H
|
||||||
#define LWIPOPTS_H
|
#define LWIPOPTS_H
|
||||||
|
|
||||||
|
#if MBED_CONF_LWIP_ETHERNET_ENABLED
|
||||||
#include "lwipopts_conf.h"
|
#include "lwipopts_conf.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
// Workaround for Linux timeval
|
// Workaround for Linux timeval
|
||||||
#if defined (TOOLCHAIN_GCC)
|
#if defined (TOOLCHAIN_GCC)
|
||||||
|
|
Loading…
Reference in New Issue