Mercurial > hg > octave-nkf
changeset 14424:c267a3522d6c
Fix compilation for old versions of cURL library (bug #35649)
* urlwrite.cc: Fix compilation for old versions of cURL library (bug #35649)
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Wed, 29 Feb 2012 23:07:18 -0800 |
parents | 62cb605af1af |
children | 6646031e2450 |
files | src/DLD-FUNCTIONS/urlwrite.cc |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/urlwrite.cc +++ b/src/DLD-FUNCTIONS/urlwrite.cc @@ -55,6 +55,11 @@ #include <curl/curlver.h> #include <curl/easy.h> +// Backwards compatibility for curl < 7.17.0 +#if LIBCURL_VERSION_NUM < 0x071100 +#define CURLOPT_DIRLISTONLY CURLOPT_FTPLISTONLY +#endif + static int write_data (void *buffer, size_t size, size_t nmemb, void *streamp) {