diff options
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/ftpupload.c | 3 | ||||
-rw-r--r-- | docs/examples/sepheaders.c | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/docs/examples/ftpupload.c b/docs/examples/ftpupload.c index 5b430e648..dee44c4ab 100644 --- a/docs/examples/ftpupload.c +++ b/docs/examples/ftpupload.c @@ -11,6 +11,9 @@ #include <stdio.h> #include <curl/curl.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> /* * This example shows an FTP upload, with a rename of the file just after diff --git a/docs/examples/sepheaders.c b/docs/examples/sepheaders.c index 3f4eb5cf4..7168f8016 100644 --- a/docs/examples/sepheaders.c +++ b/docs/examples/sepheaders.c @@ -21,7 +21,7 @@ size_t write_data(void *ptr, size_t size, size_t nmemb, void *stream) { - written = fwrite(ptr, size, nmemb, (FILE *)stream); + int written = fwrite(ptr, size, nmemb, (FILE *)stream); return written; } |