Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
f5ff243a
Commit
f5ff243a
authored
Mar 27, 2009
by
Sean McNamara
Committed by
Max Kellermann
Mar 27, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More debugging for Win32 ioctlsocket: complain if it's not a Winsock
socket, because there is no ioctl for non-sockets on Windows
parent
37531f6f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
utils.c
src/utils.c
+12
-3
No files found.
src/utils.c
View file @
f5ff243a
...
...
@@ -105,9 +105,18 @@ char *parsePath(char *path)
int
set_nonblocking
(
int
fd
)
{
#ifdef WIN32
u_long
val
=
0
;
return
ioctlsocket
(
fd
,
FIONBIO
,
&
val
)
==
0
?
0
:
-
1
;
u_long
val
=
1
;
int
retval
;
int
lasterr
=
0
;
retval
=
ioctlsocket
(
fd
,
FIONBIO
,
&
val
);
if
(
retval
==
SOCKET_ERROR
)
g_error
(
"Error: ioctlsocket could not set FIONBIO;"
" Error %d on socket %d"
,
lasterr
=
WSAGetLastError
(),
fd
);
if
(
lasterr
==
10038
)
g_debug
(
"Code-up error! Attempt to set non-blocking I/O on "
"something that is not a Winsock2 socket. This can't "
"be done on Windows!
\n
"
);
return
retval
;
#else
int
ret
,
flags
;
...
...
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