diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-07-25 08:08:23 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2022-07-25 08:08:23 +0900 |
commit | 9b3f69794dbf1f525bc1d1f15aa3403f55da92fe (patch) | |
tree | 3d19d810175a65a12f90a3fef62288747630ef15 /Curl.xs | |
parent | 4cd8ea6c4d941c8b47285d9c4976f62ece2df64d (diff) | |
download | perl-WWW-Curl-9b3f69794dbf1f525bc1d1f15aa3403f55da92fe.tar.gz perl-WWW-Curl-9b3f69794dbf1f525bc1d1f15aa3403f55da92fe.tar.bz2 perl-WWW-Curl-9b3f69794dbf1f525bc1d1f15aa3403f55da92fe.zip |
Imported Upstream version 4.17upstream/4.17upstream
Diffstat (limited to 'Curl.xs')
-rw-r--r-- | Curl.xs | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -7,8 +7,7 @@ * Copyright (C) 2000, 2001, 2002, 2005, 2008 Daniel Stenberg, Cris Bailiff, et al. * You may opt to use, copy, modify, merge, publish, distribute and/or * sell copies of the Software, and permit persons to whom the - * Software is furnished to do so, under the terms of the MPL or - * the MIT/X-derivate licenses. You may pick one of these licenses. + * Software is furnished to do so, under the terms of the MIT license. */ #define PERL_NO_GET_CONTEXT #include "EXTERN.h" @@ -39,7 +38,9 @@ typedef enum { SLIST_HTTPHEADER = 0, SLIST_QUOTE, SLIST_POSTQUOTE, +#ifdef CURLOPT_RESOLVE SLIST_RESOLVE, +#endif SLIST_LAST } perl_curl_easy_slist_code; @@ -128,9 +129,11 @@ slist_index(int option) case CURLOPT_POSTQUOTE: return SLIST_POSTQUOTE; break; +#ifdef CURLOPT_RESOLVE case CURLOPT_RESOLVE: return SLIST_RESOLVE; break; +#endif } croak("Bad slist index requested\n"); return SLIST_LAST; @@ -751,7 +754,9 @@ curl_easy_setopt(self, option, value, push=0) case CURLOPT_HTTPHEADER: case CURLOPT_QUOTE: case CURLOPT_POSTQUOTE: +#ifdef CURLOPT_RESOLVE case CURLOPT_RESOLVE: +#endif { /* This is an option specifying a list, which we put in a curl_slist struct */ AV *array = (AV *)SvRV(value); |