summaryrefslogtreecommitdiff
path: root/lib/ftplistparser.c
diff options
context:
space:
mode:
authorMark Salisbury <mark.salisbury@hp.com>2012-06-18 13:06:02 +0200
committerYang Tse <yangsita@gmail.com>2012-06-18 18:51:30 +0200
commit05f6f2497a9cd238e3314ab60ebbd8d816780a73 (patch)
tree5900a5bff2ecaaa12fa10030970db26a0156b972 /lib/ftplistparser.c
parentd56e8bcc8aeed07d73a3047c5a5be8bb9df53e0b (diff)
downloadcurl-05f6f2497a9cd238e3314ab60ebbd8d816780a73.tar.gz
ftplistparser.c: do not compile if FTP protocol is not enabled
Diffstat (limited to 'lib/ftplistparser.c')
-rw-r--r--lib/ftplistparser.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/ftplistparser.c b/lib/ftplistparser.c
index bbf6e9ef9..49ee4b6a6 100644
--- a/lib/ftplistparser.c
+++ b/lib/ftplistparser.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2011, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2012, 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
@@ -37,16 +37,18 @@
#include "setup.h"
-#include "ftplistparser.h"
-#include "curl_fnmatch.h"
+#ifndef CURL_DISABLE_FTP
+
+#include <curl/curl.h>
#include "urldata.h"
-#include "ftp.h"
#include "fileinfo.h"
#include "llist.h"
#include "strtoofft.h"
#include "rawstr.h"
#include "ftp.h"
+#include "ftplistparser.h"
+#include "curl_fnmatch.h"
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
@@ -1044,3 +1046,5 @@ size_t Curl_ftp_parselist(char *buffer, size_t size, size_t nmemb,
return bufflen;
}
+
+#endif /* CURL_DISABLE_FTP */