OLD | NEW |
1 /* | 1 /* |
2 * nanoftp.c: basic FTP client support | 2 * nanoftp.c: basic FTP client support |
3 * | 3 * |
4 * Reference: RFC 959 | 4 * Reference: RFC 959 |
5 */ | 5 */ |
6 | 6 |
7 #ifdef TESTING | 7 #ifdef TESTING |
8 #define STANDALONE | 8 #define STANDALONE |
9 #define HAVE_STDLIB_H | 9 #define HAVE_STDLIB_H |
10 #define HAVE_UNISTD_H | 10 #define HAVE_UNISTD_H |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 #include <wsockcompat.h> | 82 #include <wsockcompat.h> |
83 #include <winsock2.h> | 83 #include <winsock2.h> |
84 #undef XML_SOCKLEN_T | 84 #undef XML_SOCKLEN_T |
85 #define XML_SOCKLEN_T unsigned int | 85 #define XML_SOCKLEN_T unsigned int |
86 #endif | 86 #endif |
87 | 87 |
88 /** | 88 /** |
89 * A couple portability macros | 89 * A couple portability macros |
90 */ | 90 */ |
91 #ifndef _WINSOCKAPI_ | 91 #ifndef _WINSOCKAPI_ |
92 #ifndef __BEOS__ | 92 #if !defined(__BEOS__) || defined(__HAIKU__) |
93 #define closesocket(s) close(s) | 93 #define closesocket(s) close(s) |
94 #endif | 94 #endif |
95 #define SOCKET int | 95 #define SOCKET int |
96 #endif | 96 #endif |
97 | 97 |
98 #ifdef __BEOS__ | 98 #ifdef __BEOS__ |
99 #ifndef PF_INET | 99 #ifndef PF_INET |
100 #define PF_INET AF_INET | 100 #define PF_INET AF_INET |
101 #endif | 101 #endif |
102 #endif | 102 #endif |
(...skipping 1999 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2102 #include <stdio.h> | 2102 #include <stdio.h> |
2103 int main(int argc, char **argv) { | 2103 int main(int argc, char **argv) { |
2104 xmlGenericError(xmlGenericErrorContext, | 2104 xmlGenericError(xmlGenericErrorContext, |
2105 "%s : FTP support not compiled in\n", argv[0]); | 2105 "%s : FTP support not compiled in\n", argv[0]); |
2106 return(0); | 2106 return(0); |
2107 } | 2107 } |
2108 #endif /* STANDALONE */ | 2108 #endif /* STANDALONE */ |
2109 #endif /* LIBXML_FTP_ENABLED */ | 2109 #endif /* LIBXML_FTP_ENABLED */ |
2110 #define bottom_nanoftp | 2110 #define bottom_nanoftp |
2111 #include "elfgcchack.h" | 2111 #include "elfgcchack.h" |
OLD | NEW |