You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2021/11/09 12:33:48 UTC

[GitHub] [incubator-nuttx] gustavonihei opened a new pull request #4812: include: Add __socklen_t_defined for compatibility to other C libraries

gustavonihei opened a new pull request #4812:
URL: https://github.com/apache/incubator-nuttx/pull/4812


   ## Summary
   This PR intends to add the definition of `__socklen_t_defined` to NuttX C library implementation to indicate libraries that NuttX provides the `socklen_t` type. Although `__socklen_t_defined` may not be part of the C standard, this improves compatibility to other well-established C library implementations:
   
   - glibc: https://sourceware.org/git/?p=glibc.git;a=blob;f=bits/socket.h;h=05ac0249c7da7218cbd11be99a67529161cfa7f7;hb=refs/heads/master#l35
   - uclibc-ng: https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/tree/include/unistd.h#n279
   
   ## Impact
   Resolves Mbed TLS build warnings due to lack of `socklen_t` type.
   
   ## Testing
   `esp32-devkitc` with `CRYPTO_MBEDTLS`.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #4812: include: Add __socklen_t_defined for compatibility to other C libraries

Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged pull request #4812:
URL: https://github.com/apache/incubator-nuttx/pull/4812


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org