Skip to content

Allow user to override LWIP_PROVIDE_ERRNO #1

Closed
@Zob314

Description

@Zob314

This doesn't allow LWIP_PROVIDE_ERRNO to be overridden:
https://github.com/STMicroelectronics/stm32_mw_lwip/blob/f0d19c3a6e7420248775b5163b8dbf1fc2371331/system/arch/cc.h#L40-L42
Suggest replacing with the following:

#if !defined(LWIP_ERRNO_STDINCLUDE) && !defined(LWIP_ERRNO_INCLUDE) && !defined(LWIP_PROVIDE_ERRNO)
#define LWIP_PROVIDE_ERRNO
#endif

to align with this comment:
https://github.com/STMicroelectronics/stm32_mw_lwip/blob/f0d19c3a6e7420248775b5163b8dbf1fc2371331/src/include/lwip/opt.h#L47-L52

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestethEthernet-related issue or pull-requestinternal bug trackerIssue confirmed and reported into a ticket in the internal bug tracking system.mwMiddleware-related issue or pull-request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions