aboutsummaryrefslogtreecommitdiff
path: root/lib/sockaddr.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-11-12 22:10:42 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-11-12 22:10:42 +0000
commita5da1219bb2b7a01f0e2ea2f6548e845c1eb7038 (patch)
tree9b84f6770298b73e0ae4d0fa932d31caefa5602f /lib/sockaddr.h
parentbe524fed385a0fccbdcb7f0c26f1ae1f9c46caf4 (diff)
Reversed the logic for sockaddr_storage and made our own Curl_sockaddr_storage
struct instead to use.
Diffstat (limited to 'lib/sockaddr.h')
-rw-r--r--lib/sockaddr.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/sockaddr.h b/lib/sockaddr.h
index 938d20b20..1d6a1f464 100644
--- a/lib/sockaddr.h
+++ b/lib/sockaddr.h
@@ -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 */