Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
1d987d2f
Commit
1d987d2f
authored
Apr 11, 2014
by
Tomoyuki Sahara
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9 from schmurfy/solaris
OpenSolaris/Illumos defines a "sun" constant...
parents
572b4049
9850e6a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/socket.c
src/socket.c
+2
-2
No files found.
src/socket.c
View file @
1d987d2f
...
...
@@ -31,7 +31,7 @@ static mrb_value
mrb_addrinfo_getaddrinfo
(
mrb_state
*
mrb
,
mrb_value
klass
)
{
struct
addrinfo
hints
,
*
res0
,
*
res
;
struct
sockaddr_un
sun
;
struct
sockaddr_un
s
ock_
un
;
mrb_value
ai
,
ary
,
family
,
lastai
,
nodename
,
protocol
,
s
,
sa
,
service
,
socktype
;
mrb_int
flags
;
int
arena_idx
,
error
;
...
...
@@ -40,7 +40,7 @@ mrb_addrinfo_getaddrinfo(mrb_state *mrb, mrb_value klass)
ary
=
mrb_ary_new
(
mrb
);
arena_idx
=
mrb_gc_arena_save
(
mrb
);
/* ary must be on arena! */
s
=
mrb_str_new
(
mrb
,
(
void
*
)
&
s
un
,
sizeof
(
s
un
));
s
=
mrb_str_new
(
mrb
,
(
void
*
)
&
s
ock_un
,
sizeof
(
sock_
un
));
family
=
socktype
=
protocol
=
mrb_nil_value
();
flags
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment