1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-30 22:43:08 +03:00

- Added fixes for compiler warnings on a Mac

This commit is contained in:
Paul Bakker
2010-03-16 21:16:16 +00:00
parent f80d4539d1
commit 4ed999c4b2
3 changed files with 5 additions and 3 deletions

View File

@ -226,7 +226,7 @@ int net_accept( int bind_fd, int *client_fd, void *client_ip )
{
struct sockaddr_in client_addr;
#if defined(__socklen_t_defined)
#if defined(__socklen_t_defined) || defined(_SOCKLEN_T)
socklen_t n = (socklen_t) sizeof( client_addr );
#else
int n = (int) sizeof( client_addr );