lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #51463] posix/errno.h incompatible with LWIP_ERRNO_STD


From: Joel Cunningham
Subject: [lwip-devel] [bug #51463] posix/errno.h incompatible with LWIP_ERRNO_STDINCLUDE
Date: Fri, 14 Jul 2017 14:29:21 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0

Follow-up Comment #4, bug #51463 (project lwip):

> In other words, having both LWIP_ERRNO_STDINCLUDE==1 and the "include/posix"
in your include paths is not meant to work (yet?) ;-)

Thinking about this more, the posix/errno.h with LWIP_PROVIDE_ERRNO == 1 is
only safe if the C library doesn't also provide errno.h because other source
files in the project may be compiled against the standard C library version
(depending on include paths during compilation) and you'll end up with a
binary incompatibility between object files if underlying values don't match. 


Have you worked with embedded toolchains where errno.h is not provided by the
standard C library?  I typically use the ARM C Compiler and GCC ARM Embedded,
both provide errno.h, but none of the BSD socket (later standardized to POSIX)
headers.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?51463>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/




reply via email to

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