Changeset 4e3dd55ed74dc7ccca859db247a2ee0f087b7929
- Timestamp:
- 05/26/05 11:38:35
(3 years ago)
- Author:
- Gildas Bazin <gbazin@videolan.org>
- git-committer:
- Gildas Bazin <gbazin@videolan.org> 1117100315 +0000
- git-parent:
[0e3121b1c84a225872f7d3d5f3ff593f18af9a6f]
- git-author:
- Gildas Bazin <gbazin@videolan.org> 1117100315 +0000
- Message:
* src/misc/net.c,getaddrinfo.c: WinCE build fixes.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rb748d47 |
r4e3dd55 |
|
| 38 | 38 | |
|---|
| 39 | 39 | #if defined( WIN32 ) || defined( UNDER_CE ) |
|---|
| | 40 | # if defined(UNDER_CE) && defined(sockaddr_storage) |
|---|
| | 41 | # undef sockaddr_storage |
|---|
| | 42 | # endif |
|---|
| 40 | 43 | # include <winsock2.h> |
|---|
| 41 | 44 | # include <ws2tcpip.h> |
|---|
| re60de90 |
r4e3dd55 |
|
| 40 | 40 | |
|---|
| 41 | 41 | #if defined( WIN32 ) || defined( UNDER_CE ) |
|---|
| | 42 | # if defined(UNDER_CE) && defined(sockaddr_storage) |
|---|
| | 43 | # undef sockaddr_storage |
|---|
| | 44 | # endif |
|---|
| 42 | 45 | # include <winsock2.h> |
|---|
| 43 | 46 | # include <ws2tcpip.h> |
|---|
| … | … | |
| 660 | 663 | i_total += i_data; |
|---|
| 661 | 664 | } |
|---|
| 662 | | else |
|---|
| 663 | | msg_Err( p_this, "recv failed (%i)", WSAGetLastError() ); |
|---|
| | 665 | else if( WSAGetLastError() == WSAEINTR ) continue; |
|---|
| | 666 | else msg_Err( p_this, "recv failed (%i)", WSAGetLastError() ); |
|---|
| 664 | 667 | #else |
|---|
| 665 | 668 | /* EAGAIN only happens with p_vs (SSL) and it's not an error */ |
|---|
| … | … | |
| 746 | 749 | "Increase the mtu size (--mtu option)" ); |
|---|
| 747 | 750 | } |
|---|
| 748 | | else |
|---|
| 749 | | msg_Err( p_this, "recv failed (%i)", WSAGetLastError() ); |
|---|
| | 751 | else msg_Err( p_this, "recv failed (%i)", WSAGetLastError() ); |
|---|
| 750 | 752 | #else |
|---|
| 751 | 753 | msg_Err( p_this, "recv failed (%s)", strerror(errno) ); |
|---|
| … | … | |
| 827 | 829 | "Increase the mtu size (--mtu option)" ); |
|---|
| 828 | 830 | } |
|---|
| 829 | | else |
|---|
| 830 | | msg_Err( p_this, "recv failed (%i)", |
|---|
| 831 | | WSAGetLastError() ); |
|---|
| | 831 | else msg_Err( p_this, "recv failed (%i)", |
|---|
| | 832 | WSAGetLastError() ); |
|---|
| 832 | 833 | #else |
|---|
| 833 | 834 | msg_Err( p_this, "recv failed (%s)", strerror(errno) ); |
|---|
| … | … | |
| 1171 | 1172 | return VLC_SUCCESS; |
|---|
| 1172 | 1173 | } |
|---|
| 1173 | | |
|---|
| 1174 | | |
|---|