aboutsummaryrefslogtreecommitdiff
path: root/tests/server/tftpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/server/tftpd.c')
-rw-r--r--tests/server/tftpd.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index be5c5b95c..a98791de6 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -49,18 +49,13 @@
*/
#include "setup.h" /* portability help from the lib directory */
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
+
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
-#ifdef HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
-
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
-
+#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
@@ -84,12 +79,9 @@
#endif
#include <setjmp.h>
-#include <stdio.h>
-#include <errno.h>
-#include <ctype.h>
-#include <string.h>
-#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif