diff options
author | Daniel Stenberg <daniel@haxx.se> | 2021-02-25 12:45:21 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-02-25 16:41:35 +0100 |
commit | 1b2098c3c9580c431cc9c4b110249abfd94792ed (patch) | |
tree | cbbd7c527a921a371eca23d8ade670efb1bc5077 /lib/nonblock.c | |
parent | 71bfa5aca8bf93a47aae9632323f024dfc11b06a (diff) | |
download | curl-1b2098c3c9580c431cc9c4b110249abfd94792ed.tar.gz |
build: remove all traces of USE_BLOCKING_SOCKETS
libcurl doesn't behave properly with the define set
Closes #6655
Diffstat (limited to 'lib/nonblock.c')
-rw-r--r-- | lib/nonblock.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/nonblock.c b/lib/nonblock.c index 4a7bde504..fda2e9ad7 100644 --- a/lib/nonblock.c +++ b/lib/nonblock.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al. + * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -47,13 +47,7 @@ int curlx_nonblock(curl_socket_t sockfd, /* operate on this */ int nonblock /* TRUE or FALSE */) { -#if defined(USE_BLOCKING_SOCKETS) - (void)sockfd; - (void)nonblock; - return 0; /* returns success */ - -#elif defined(HAVE_FCNTL_O_NONBLOCK) - +#if defined(HAVE_FCNTL_O_NONBLOCK) /* most recent unix versions */ int flags; flags = sfcntl(sockfd, F_GETFL, 0); |