lwip_provide_errno

View: New views
1 Messages — Rating Filter:   Alert me  

lwip_provide_errno

by Dmitri Snejko :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


_______________________________________________
lwip-users mailing list
lwip-users@...
http://lists.nongnu.org/mailman/listinfo/lwip-users