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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to