From e46fbc52b79410d9b236883060339f830c34818f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 3 May 2008 14:55:33 +0800 Subject: [SHELL] Fixed klibc/klcc build problems klibc does not have mempcpy, so system.h must be included where this is used to provide the replacement. glob.h doesn't exist, so we need to guard this include with the HAVE_GLOB definition. Finally, klcc didn't like the syntax of the main definition in mksignames, and the resulting program segfaulted when trying to dereference any part of the argv array. Updating the main function definition solved the problem. Signed-off-by: Dan McGee Signed-off-by: Herbert Xu --- src/expand.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/expand.c') diff --git a/src/expand.c b/src/expand.c index 5986236..2c52781 100644 --- a/src/expand.c +++ b/src/expand.c @@ -46,7 +46,9 @@ #include #include #include +#ifdef HAVE_GLOB #include +#endif #include /* -- cgit 1.4.1