From 5a818f71d77b0327f7f26a5dd17d6baecc1b58ea Mon Sep 17 00:00:00 2001 From: zwelch Date: Mon, 11 May 2009 03:48:32 +0000 Subject: Simplify #include directives in ioutil.c, use new header checks. git-svn-id: svn://svn.berlios.de/openocd/trunk@1705 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/ioutil.c | 63 +++++++++++++++++++++++------------------------------ 1 file changed, 27 insertions(+), 36 deletions(-) (limited to 'src/helper') diff --git a/src/helper/ioutil.c b/src/helper/ioutil.c index ef9c0ceb..390eb042 100644 --- a/src/helper/ioutil.c +++ b/src/helper/ioutil.c @@ -24,48 +24,39 @@ #endif #include "log.h" -#include "types.h" -#include "configuration.h" -#include "target.h" - -#include "command.h" - -#include -#include -#include -#include -#include -#include -#include -#if !BUILD_ECOSBOARD -#include -#endif -#include - +#include "time_support.h" -#include -#include -#include -#include -#include -#include -#include -#include +#ifdef HAVE_ARPA_INET_H #include -#include +#endif +#ifdef HAVE_DIRENT_H +#include +#endif +#ifdef HAVE_NETDB_H #include -#include -#include -#include -#include -#include - -#if !defined(__CYGWIN__) +#endif +#ifdef HAVE_NET_IF_H +#include +#endif +//#ifdef HAVE_NETINET_TCP_H +//#include +//#endif +#ifdef HAVE_SYS_IOCTL_H +#include +#endif +#ifdef HAVE_SYS_STAT_H +#include +#endif +#ifdef HAVE_IFADDRS_H #include #endif +#ifdef HAVE_MALLOC_H +#include +#endif +//#ifdef HAVE_STRINGS_H +//#include +//#endif -#include -#include int handle_rm_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) -- cgit v1.2.3