File tree 1 file changed +21
-0
lines changed
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,27 @@ file 'runtime/platform.conf' => deps do |task|
119
119
s . field :l_linger
120
120
end . write_config ( f )
121
121
122
+ Rubinius ::FFI ::Generators ::Structures . new 'iovec' do |s |
123
+ s . include 'sys/socket.h'
124
+ s . name 'struct iovec'
125
+
126
+ s . field :iov_base , :pointer
127
+ s . field :iov_len , :size_t
128
+ end . write_config ( f )
129
+
130
+ Rubinius ::FFI ::Generators ::Structures . new 'msghdr' do |s |
131
+ s . include 'sys/socket.h'
132
+ s . name 'struct msghdr'
133
+
134
+ s . field :msg_name , :pointer
135
+ s . field :msg_namelen , :int
136
+ s . field :msg_iov , :pointer
137
+ s . field :msg_iovlen , :size_t
138
+ s . field :msg_control , :pointer
139
+ s . field :msg_controllen , :size_t
140
+ s . field :msg_flags , :int
141
+ end . write_config ( f )
142
+
122
143
Rubinius ::FFI ::Generators ::Structures . new 'servent' do |s |
123
144
if BUILD_CONFIG [ :windows ]
124
145
s . include "winsock2.h"
You can’t perform that action at this time.
0 commit comments