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
6e13467c
Commit
6e13467c
authored
Apr 28, 2020
by
Uchio Kondo
Committed by
Hiroshi Mimaki
May 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo and include location
parent
508ac203
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
mrbgems/mruby-io/test/mruby_io_test.c
mrbgems/mruby-io/test/mruby_io_test.c
+4
-4
No files found.
mrbgems/mruby-io/test/mruby_io_test.c
View file @
6e13467c
#include <mruby/common.h>
#include <mruby/common.h>
#include <sys/types.h>
#include <sys/types.h>
#include <errno.h>
#include <errno.h>
#include <assert.h>
#if defined(_WIN32) || defined(_WIN64)
#if defined(_WIN32) || defined(_WIN64)
...
@@ -54,11 +53,12 @@ mkdtemp(char *temp)
...
@@ -54,11 +53,12 @@ mkdtemp(char *temp)
#include <sys/socket.h>
#include <sys/socket.h>
#include <unistd.h>
#include <unistd.h>
#include <sys/un.h>
#include <sys/un.h>
#include <assert.h>
#include <fcntl.h>
#endif
#endif
#include <sys/stat.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <stdlib.h>
#include <fcntl.h>
#include "mruby.h"
#include "mruby.h"
#include "mruby/array.h"
#include "mruby/array.h"
...
@@ -71,7 +71,7 @@ int wd_save;
...
@@ -71,7 +71,7 @@ int wd_save;
int
socket_available_p
;
int
socket_available_p
;
#if !defined(_WIN32) && !defined(_WIN64)
#if !defined(_WIN32) && !defined(_WIN64)
static
int
mrb_io_socket_a
b
ailable
()
static
int
mrb_io_socket_a
v
ailable
()
{
{
int
fd
,
retval
=
1
;
int
fd
,
retval
=
1
;
struct
sockaddr_un
sun0
;
struct
sockaddr_un
sun0
;
...
@@ -114,7 +114,7 @@ mrb_io_test_io_setup(mrb_state *mrb, mrb_value self)
...
@@ -114,7 +114,7 @@ mrb_io_test_io_setup(mrb_state *mrb, mrb_value self)
int
fd2
,
fd3
;
int
fd2
,
fd3
;
struct
sockaddr_un
sun0
;
struct
sockaddr_un
sun0
;
if
(
!
(
socket_available_p
=
mrb_io_socket_a
b
ailable
()))
{
if
(
!
(
socket_available_p
=
mrb_io_socket_a
v
ailable
()))
{
char
*
tmpdir
;
char
*
tmpdir
;
wd_save
=
open
(
"."
,
O_DIRECTORY
);
wd_save
=
open
(
"."
,
O_DIRECTORY
);
tmpdir
=
getenv
(
"TMPDIR"
);
tmpdir
=
getenv
(
"TMPDIR"
);
...
...
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