| Summary: | socklen_t compilation breakage | ||
|---|---|---|---|
| Product: | SDL_net | Reporter: | Ozkan Sezer <sezeroz> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
|
Description
Ozkan Sezer
2011-02-17 19:38:25 UTC
Fixed, thanks. Hmm, windows with winsock/1.x still need a socklen_t definition. The following fixes it for all compilers. diff -r fb5762c4b219 SDLnetsys.h --- a/SDLnetsys.h +++ b/SDLnetsys.h @@ -50,6 +50,9 @@ #include <ws2tcpip.h> #else #include <winsock.h> +/* NOTE: windows socklen_t is signed + * and is defined only for winsock2. */ +typedef int socklen_t; #endif /* W64 */ #else /* UNIX */ #ifdef __OS2__ Got it, thanks! |