diff options
author | Ron Yorston <rmy@pobox.com> | 2012-06-26 13:28:45 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2012-06-26 14:51:56 +0100 |
commit | b25a7c28a0f684087fa6ccbbc7e265a9cac0f0fa (patch) | |
tree | 017081095323febda9315fd03fd852c201b4ea0d | |
parent | 8ed4a312b78eb0c243267978b776a443ddb55a83 (diff) | |
download | busybox-w32-b25a7c28a0f684087fa6ccbbc7e265a9cac0f0fa.tar.gz busybox-w32-b25a7c28a0f684087fa6ccbbc7e265a9cac0f0fa.tar.bz2 busybox-w32-b25a7c28a0f684087fa6ccbbc7e265a9cac0f0fa.zip |
mingw32: add man
-rw-r--r-- | configs/mingw32_defconfig | 4 | ||||
-rw-r--r-- | include/platform.h | 1 | ||||
-rw-r--r-- | 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 @@ | |||
1 | # | 1 | # |
2 | # Automatically generated make config: don't edit | 2 | # Automatically generated make config: don't edit |
3 | # Busybox version: 1.21.0.git | 3 | # Busybox version: 1.21.0.git |
4 | # Tue May 1 10:38:28 2012 | 4 | # Tue Jun 26 13:14:48 2012 |
5 | # | 5 | # |
6 | CONFIG_HAVE_DOT_CONFIG=y | 6 | CONFIG_HAVE_DOT_CONFIG=y |
7 | # CONFIG_PLATFORM_POSIX is not set | 7 | # CONFIG_PLATFORM_POSIX is not set |
@@ -694,7 +694,7 @@ CONFIG_DC=y | |||
694 | # CONFIG_MAKEDEVS is not set | 694 | # CONFIG_MAKEDEVS is not set |
695 | # CONFIG_FEATURE_MAKEDEVS_LEAF is not set | 695 | # CONFIG_FEATURE_MAKEDEVS_LEAF is not set |
696 | # CONFIG_FEATURE_MAKEDEVS_TABLE is not set | 696 | # CONFIG_FEATURE_MAKEDEVS_TABLE is not set |
697 | # CONFIG_MAN is not set | 697 | CONFIG_MAN=y |
698 | # CONFIG_MICROCOM is not set | 698 | # CONFIG_MICROCOM is not set |
699 | # CONFIG_MOUNTPOINT is not set | 699 | # CONFIG_MOUNTPOINT is not set |
700 | # CONFIG_MT is not set | 700 | # 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; | |||
395 | 395 | ||
396 | #if ENABLE_PLATFORM_MINGW32 | 396 | #if ENABLE_PLATFORM_MINGW32 |
397 | # undef HAVE_DPRINTF | 397 | # undef HAVE_DPRINTF |
398 | # undef HAVE_GETLINE | ||
398 | # undef HAVE_MEMRCHR | 399 | # undef HAVE_MEMRCHR |
399 | # undef HAVE_MKDTEMP | 400 | # undef HAVE_MKDTEMP |
400 | # undef HAVE_SETBIT | 401 | # 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) | |||
204 | char *next_path; | 204 | char *next_path; |
205 | char **path_element; | 205 | char **path_element; |
206 | 206 | ||
207 | #if ENABLE_PLATFORM_MINGW32 | ||
208 | next_path = next_path_sep(path); | ||
209 | #else | ||
207 | next_path = strchr(path, ':'); | 210 | next_path = strchr(path, ':'); |
211 | #endif | ||
208 | if (next_path) { | 212 | if (next_path) { |
209 | *next_path = '\0'; | 213 | *next_path = '\0'; |
210 | if (next_path++ == path) /* "::"? */ | 214 | if (next_path++ == path) /* "::"? */ |