Skip to content

Commit ba75b60

Browse files
author
Yorick Peterse
committedNov 16, 2015
Added iovec and msghdr structures
These will be required by the upcoming release of rubysl-socket.
1 parent b9ca4b3 commit ba75b60

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
 

‎rakelib/platform.rake

+21
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,27 @@ file 'runtime/platform.conf' => deps do |task|
119119
s.field :l_linger
120120
end.write_config(f)
121121

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+
122143
Rubinius::FFI::Generators::Structures.new 'servent' do |s|
123144
if BUILD_CONFIG[:windows]
124145
s.include "winsock2.h"

0 commit comments

Comments
 (0)
Please sign in to comment.