summaryrefslogtreecommitdiff
path: root/lib/socketpair.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-08-14 15:45:08 +0200
committerDaniel Stenberg <daniel@haxx.se>2020-08-26 22:58:21 +0200
commitd854572ccc5f524ba48a158c2c26614def9e39e5 (patch)
tree2a957fda3e739572a12a8320d48444fe938ce4bf /lib/socketpair.c
parentce88e21c724d5a45a2c8c295734f65f75cf4ea79 (diff)
downloadcurl-d854572ccc5f524ba48a158c2c26614def9e39e5.tar.gz
socketpair: allow CURL_DISABLE_SOCKETPAIR
... to completely disable the use of socketpair Closes #5850
Diffstat (limited to 'lib/socketpair.c')
-rw-r--r--lib/socketpair.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/socketpair.c b/lib/socketpair.c
index 1ec0d75a4..9e1f9ef4c 100644
--- a/lib/socketpair.c
+++ b/lib/socketpair.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 2019, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2019 - 2020, 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
@@ -23,7 +23,7 @@
#include "curl_setup.h"
#include "socketpair.h"
-#ifndef HAVE_SOCKETPAIR
+#if !defined(HAVE_SOCKETPAIR) && !defined(CURL_DISABLE_SOCKETPAIR)
#ifdef WIN32
/*
* This is a socketpair() implementation for Windows.