Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
59b15888
Commit
59b15888
authored
Feb 18, 2005
by
stewart@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Solaris build problem (jonas pointed out strerror_r is not available).
parent
703811c7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
ndb/src/common/util/SocketServer.cpp
ndb/src/common/util/SocketServer.cpp
+1
-4
No files found.
ndb/src/common/util/SocketServer.cpp
View file @
59b15888
...
@@ -123,11 +123,8 @@ SocketServer::setup(SocketServer::Service * service,
...
@@ -123,11 +123,8 @@ SocketServer::setup(SocketServer::Service * service,
/* Get the port we bound to */
/* Get the port we bound to */
SOCKET_SIZE_TYPE
sock_len
=
sizeof
(
servaddr
);
SOCKET_SIZE_TYPE
sock_len
=
sizeof
(
servaddr
);
if
(
getsockname
(
sock
,(
struct
sockaddr
*
)
&
servaddr
,
&
sock_len
)
<
0
)
{
if
(
getsockname
(
sock
,(
struct
sockaddr
*
)
&
servaddr
,
&
sock_len
)
<
0
)
{
char
msg
[
100
];
if
(
!
strerror_r
(
errno
,
msg
,
sizeof
(
msg
)))
strcpy
(
msg
,
"Unknown"
);
ndbout_c
(
"An error occurred while trying to find out what"
ndbout_c
(
"An error occurred while trying to find out what"
" port we bound to. Error: %s"
,
msg
);
" port we bound to. Error: %s"
,
strerror
(
errno
)
);
NDB_CLOSE_SOCKET
(
sock
);
NDB_CLOSE_SOCKET
(
sock
);
DBUG_RETURN
(
false
);
DBUG_RETURN
(
false
);
}
}
...
...
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