diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/ecore/src/lib/ecore_file/ecore_file_download.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libraries/ecore/src/lib/ecore_file/ecore_file_download.c b/libraries/ecore/src/lib/ecore_file/ecore_file_download.c index c7efc4d..c5e56bd 100644 --- a/libraries/ecore/src/lib/ecore_file/ecore_file_download.c +++ b/libraries/ecore/src/lib/ecore_file/ecore_file_download.c | |||
@@ -2,6 +2,7 @@ | |||
2 | # include <config.h> | 2 | # include <config.h> |
3 | #endif | 3 | #endif |
4 | 4 | ||
5 | #include <stdlib.h> | ||
5 | #include <stdio.h> | 6 | #include <stdio.h> |
6 | #include <string.h> | 7 | #include <string.h> |
7 | 8 | ||
@@ -14,6 +15,7 @@ | |||
14 | #ifdef BUILD_ECORE_CON | 15 | #ifdef BUILD_ECORE_CON |
15 | 16 | ||
16 | #define ECORE_MAGIC_FILE_DOWNLOAD_JOB 0xf7427cb8 | 17 | #define ECORE_MAGIC_FILE_DOWNLOAD_JOB 0xf7427cb8 |
18 | #define ECORE_FILE_DOWNLOAD_TIMEOUT 30 | ||
17 | 19 | ||
18 | struct _Ecore_File_Download_Job | 20 | struct _Ecore_File_Download_Job |
19 | { | 21 | { |
@@ -360,6 +362,7 @@ _ecore_file_download_curl(const char *url, const char *dst, | |||
360 | } | 362 | } |
361 | 363 | ||
362 | if (headers) eina_hash_foreach(headers, _ecore_file_download_headers_foreach_cb, job); | 364 | if (headers) eina_hash_foreach(headers, _ecore_file_download_headers_foreach_cb, job); |
365 | ecore_con_url_timeout_set(job->url_con, ECORE_FILE_DOWNLOAD_TIMEOUT); | ||
363 | ecore_con_url_fd_set(job->url_con, fileno(job->file)); | 366 | ecore_con_url_fd_set(job->url_con, fileno(job->file)); |
364 | ecore_con_url_data_set(job->url_con, data); | 367 | ecore_con_url_data_set(job->url_con, data); |
365 | 368 | ||