summaryrefslogtreecommitdiff
path: root/nanoftp.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-03-02 00:29:17 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2022-03-02 00:43:54 +0100
commit776d15d38359255434f5d55722430dfcb7b3eba5 (patch)
tree2c205ab402f337d78864fc601e3c9e1c777898c6 /nanoftp.c
parent8f3bd262413fbac0c2314249ea3836667fce4538 (diff)
downloadlibxml2-776d15d38359255434f5d55722430dfcb7b3eba5.tar.gz
Don't check for standard C89 headers
Don't check for - ctype.h - errno.h - float.h - limits.h - math.h - signal.h - stdarg.h - stdlib.h - string.h - time.h Stop including non-standard headers - malloc.h - strings.h
Diffstat (limited to 'nanoftp.c')
-rw-r--r--nanoftp.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/nanoftp.c b/nanoftp.c
index bfc77b60..6de7d300 100644
--- a/nanoftp.c
+++ b/nanoftp.c
@@ -6,7 +6,6 @@
#ifdef TESTING
#define STANDALONE
-#define HAVE_STDLIB_H
#define HAVE_UNISTD_H
#define HAVE_SYS_SOCKET_H
#define HAVE_NETINET_IN_H
@@ -19,10 +18,9 @@
#ifdef LIBXML_FTP_ENABLED
#include <string.h>
-
-#ifdef HAVE_STDLIB_H
#include <stdlib.h>
-#endif
+#include <errno.h>
+
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -41,9 +39,6 @@
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
-#ifdef HAVE_ERRNO_H
-#include <errno.h>
-#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
@@ -56,9 +51,6 @@
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>