mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:03:40 +03:00
Reversed the logic for sockaddr_storage and made our own Curl_sockaddr_storage
struct instead to use.
This commit is contained in:
parent
be524fed38
commit
a5da1219bb
3 changed files with 13 additions and 11 deletions
|
|
@ -26,11 +26,13 @@
|
|||
#include "setup.h"
|
||||
|
||||
#ifndef HAVE_STRUCT_SOCKADDR_STORAGE
|
||||
struct sockaddr_storage
|
||||
{
|
||||
char buffer[256]; /* this should be big enough to fit a lot */
|
||||
};
|
||||
struct Curl_sockaddr_storage {
|
||||
struct sockaddr_storage buffer;
|
||||
}
|
||||
#else
|
||||
struct Curl_sockaddr_storage {
|
||||
char buffer[256]; /* this should be big enough to fit a lot */
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* __SOCKADDR_H */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue