From b25a7c28a0f684087fa6ccbbc7e265a9cac0f0fa Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 26 Jun 2012 13:28:45 +0100 Subject: mingw32: add man --- configs/mingw32_defconfig | 4 ++-- include/platform.h | 1 + miscutils/man.c | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configs/mingw32_defconfig b/configs/mingw32_defconfig index c6498d2dc..3398d37bc 100644 --- a/configs/mingw32_defconfig +++ b/configs/mingw32_defconfig @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Busybox version: 1.21.0.git -# Tue May 1 10:38:28 2012 +# Tue Jun 26 13:14:48 2012 # CONFIG_HAVE_DOT_CONFIG=y # CONFIG_PLATFORM_POSIX is not set @@ -694,7 +694,7 @@ CONFIG_DC=y # CONFIG_MAKEDEVS is not set # CONFIG_FEATURE_MAKEDEVS_LEAF is not set # CONFIG_FEATURE_MAKEDEVS_TABLE is not set -# CONFIG_MAN is not set +CONFIG_MAN=y # CONFIG_MICROCOM is not set # CONFIG_MOUNTPOINT is not set # CONFIG_MT is not set diff --git a/include/platform.h b/include/platform.h index b3c4eaf5d..925cce60c 100644 --- a/include/platform.h +++ b/include/platform.h @@ -395,6 +395,7 @@ typedef unsigned smalluint; #if ENABLE_PLATFORM_MINGW32 # undef HAVE_DPRINTF +# undef HAVE_GETLINE # undef HAVE_MEMRCHR # undef HAVE_MKDTEMP # undef HAVE_SETBIT diff --git a/miscutils/man.c b/miscutils/man.c index 611466349..236fdcebd 100644 --- a/miscutils/man.c +++ b/miscutils/man.c @@ -204,7 +204,11 @@ int man_main(int argc UNUSED_PARAM, char **argv) char *next_path; char **path_element; +#if ENABLE_PLATFORM_MINGW32 + next_path = next_path_sep(path); +#else next_path = strchr(path, ':'); +#endif if (next_path) { *next_path = '\0'; if (next_path++ == path) /* "::"? */ -- cgit v1.2.3-55-g6feb