Reversed the logic for sockaddr_storage and made our own Curl_sockaddr_storage

struct instead to use.
This commit is contained in:
Daniel Stenberg
2005-11-12 22:10:42 +00:00
parent be524fed38
commit a5da1219bb
3 changed files with 13 additions and 11 deletions

View File

@@ -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 */