Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
7d0b2eab
Commit
7d0b2eab
authored
Oct 07, 2004
by
Andy Cedilnik
Browse files
COMP: If both tests are succesfull, prevent compiler error
parent
8732505a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/CTest/Curl/connect.c
View file @
7d0b2eab
...
...
@@ -132,23 +132,27 @@ int Curl_nonblock(curl_socket_t sockfd, /* operate on this */
{
#undef SETBLOCK
#ifdef HAVE_O_NONBLOCK
/* most recent unix versions */
int
flags
;
{
/* most recent unix versions */
int
flags
;
flags
=
fcntl
(
sockfd
,
F_GETFL
,
0
);
if
(
TRUE
==
nonblock
)
return
fcntl
(
sockfd
,
F_SETFL
,
flags
|
O_NONBLOCK
);
else
return
fcntl
(
sockfd
,
F_SETFL
,
flags
&
(
~
O_NONBLOCK
));
flags
=
fcntl
(
sockfd
,
F_GETFL
,
0
);
if
(
TRUE
==
nonblock
)
return
fcntl
(
sockfd
,
F_SETFL
,
flags
|
O_NONBLOCK
);
else
return
fcntl
(
sockfd
,
F_SETFL
,
flags
&
(
~
O_NONBLOCK
));
}
#define SETBLOCK 1
#endif
#ifdef HAVE_FIONBIO
/* older unix versions */
int
flags
;
{
/* older unix versions */
int
flags
;
flags
=
nonblock
;
return
ioctl
(
sockfd
,
FIONBIO
,
&
flags
);
flags
=
nonblock
;
return
ioctl
(
sockfd
,
FIONBIO
,
&
flags
);
}
#define SETBLOCK 2
#endif
...
...
Write
Preview
Supports
Markdown
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