summaryrefslogtreecommitdiff
path: root/lib/sockaddr.h
diff options
context:
space:
mode:
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 */