summaryrefslogtreecommitdiff
path: root/nanoftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'nanoftp.c')
-rw-r--r--nanoftp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/nanoftp.c b/nanoftp.c
index 8d490e09..96fa272d 100644
--- a/nanoftp.c
+++ b/nanoftp.c
@@ -4,12 +4,22 @@
* Reference: RFC 959
*/
+#ifdef TESTING
+#define STANDALONE
+#define HAVE_STDLIB_H
+#define HAVE_UNISTD_H
+#define HAVE_SYS_SOCKET_H
+#define HAVE_NETINET_IN_H
+#define HAVE_NETDB_H
+#define HAVE_SYS_TIME_H
+#else /* STANDALONE */
#ifdef WIN32
#define INCLUDE_WINSOCK
#include "win32config.h"
#else
#include "config.h"
#endif
+#endif /* STANDALONE */
#include "xmlversion.h"