summaryrefslogtreecommitdiff
path: root/nanoftp.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2000-04-03 19:48:13 +0000
committerDaniel Veillard <veillard@src.gnome.org>2000-04-03 19:48:13 +0000
commit361d845de0f06c1d52668c8df489ec8e4071a768 (patch)
tree8fee91c517cebbf8d196924550fd8aada4f08770 /nanoftp.c
parentec30341c5c9d88ff5f1c23908707aee83c287612 (diff)
downloadlibxml2-361d845de0f06c1d52668c8df489ec8e4071a768.tar.gz
Work done on the plane, ready to release libxml2-2.0.0, Daniel
Diffstat (limited to 'nanoftp.c')
-rw-r--r--nanoftp.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/nanoftp.c b/nanoftp.c
index e4f42141..2f5a4184 100644
--- a/nanoftp.c
+++ b/nanoftp.c
@@ -11,7 +11,9 @@
#else
#include "config.h"
#endif
+#include "xmlversion.h"
+#ifdef LIBXML_FTP_ENABLED
#include <stdio.h>
#include <string.h>
@@ -60,8 +62,8 @@
#include <strings.h>
#endif
-#include "xmlmemory.h"
-#include "nanoftp.h"
+#include <libxml/xmlmemory.h>
+#include <libxml/nanoftp.h>
/* #define DEBUG_FTP 1 */
#ifdef STANDALONE
@@ -1815,3 +1817,12 @@ int main(int argc, char **argv) {
exit(0);
}
#endif /* STANDALONE */
+#else /* !LIBXML_FTP_ENABLED */
+#ifdef STANDALONE
+#include <stdio.h>
+int main(int argc, char **argv) {
+ printf("%s : FTP support not compiled in\n", argv[0]);
+ return(0);
+}
+#endif /* STANDALONE */
+#endif /* LIBXML_FTP_ENABLED */