lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] lwip_provide_errno


From: Dmitri Snejko
Subject: [lwip-users] lwip_provide_errno
Date: Fri, 30 Oct 2009 23:43:38 -0400
User-agent: Thunderbird 2.0.0.23 (Windows/20090812)

Hello,

In arch.h there is a section:

#ifdef LWIP_PROVIDE_ERRNO
// errno codes
#endif /* LWIP_PROVIDE_ERRNO */

which defines unix errno codes used later in socket library. To switch it on lwipopts.h should have #define LWIP_PROVIDE_ERRNO. But it doesn't reference to anything else if CLIB already has its own errno which could cause compilation problems. I think this definition should be changed:

#ifdef LWIP_PROVIDE_ERRNO
// errno codes
#else
 #include <errno.h>
#endif /* LWIP_PROVIDE_ERRNO */

Regards, Dmitri




reply via email to

[Prev in Thread] Current Thread [Next in Thread]