diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-08-14 15:45:08 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-08-25 14:49:58 +0200 |
commit | 1ff058d91890f9f1ef7d320fb2c57bd13e214c51 (patch) | |
tree | 0909f76f459b2c9d260e10054191fbbed8d73649 /lib/socketpair.c | |
parent | 259a81555d4081952f6b7e30b5fa86fff356869b (diff) | |
download | curl-bagder/disable-socketpair.tar.gz |
socketpair: allow CURL_DISABLE_SOCKETPAIRbagder/disable-socketpair
... to completely disable the use of socketpair
Diffstat (limited to 'lib/socketpair.c')
-rw-r--r-- | lib/socketpair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/socketpair.c b/lib/socketpair.c index 1ec0d75a4..2a89b7b20 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. |