summaryrefslogtreecommitdiff
path: root/ext/socket/rubysocket.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-27 13:55:19 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-27 13:55:19 +0000
commitbf96ea63623856a61d978da45a0f9b27560fe499 (patch)
tree5f4025ce6a021d80aaf5cda1a6f0410b0d02ea39 /ext/socket/rubysocket.h
parent3b6d093451565c80d36c791ff6ac9cbc5918d287 (diff)
* ext/socket/rubysocket.h (union_sockaddr): make it longer for SunOS
and Darwin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/rubysocket.h')
-rw-r--r--ext/socket/rubysocket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h
index d06516f..10aa630 100644
--- a/ext/socket/rubysocket.h
+++ b/ext/socket/rubysocket.h
@@ -161,6 +161,7 @@ typedef union {
struct sockaddr_un un;
#endif
struct sockaddr_storage storage;
+ char place_holder[2048]; /* sockaddr_storage is not enough for Unix domain sockets on SunOS and Darwin. */
} union_sockaddr;
#ifdef __APPLE__