summaryrefslogtreecommitdiff
path: root/lib/nonblock.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-01-16 23:35:00 +0100
committerDaniel Stenberg <daniel@haxx.se>2022-01-17 08:47:23 +0100
commit90dd1fc66401d5bb7814f4edeb16a06c925b1f1e (patch)
tree6a29afbb97c243e710a0bedf380f1c2485ea1b8f /lib/nonblock.c
parent0041fe7ef5e32408865bc543897a42f5e2ea376e (diff)
downloadcurl-90dd1fc66401d5bb7814f4edeb16a06c925b1f1e.tar.gz
misc: remove BeOS code and references
There has not been a mention of this OS in any commit since December 2004 (58f4af7973e3d2). The OS is also long gone. Closes #8288
Diffstat (limited to 'lib/nonblock.c')
-rw-r--r--lib/nonblock.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/nonblock.c b/lib/nonblock.c
index fda2e9ad7..92fb22ec2 100644
--- a/lib/nonblock.c
+++ b/lib/nonblock.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2021, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2022, 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
@@ -73,12 +73,6 @@ int curlx_nonblock(curl_socket_t sockfd, /* operate on this */
long flags = nonblock ? 1L : 0L;
return IoctlSocket(sockfd, FIONBIO, (char *)&flags);
-#elif defined(HAVE_SETSOCKOPT_SO_NONBLOCK)
-
- /* BeOS */
- long b = nonblock ? 1L : 0L;
- return setsockopt(sockfd, SOL_SOCKET, SO_NONBLOCK, &b, sizeof(b));
-
#else
# error "no non-blocking method was found/used/set"
#endif