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 --- ChangeLog | 4 ++++ src/arith_yylex.c | 1 + src/expand.c | 2 ++ src/mksignames.c | 4 +--- src/parser.c | 1 + 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 773b36e..d52c521 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-05-03 Dan McGee + + * Fixed klibc/klcc build problems. + 2008-05-03 Herbert Xu * Fixed _PATH_BSHELL warning. diff --git a/src/arith_yylex.c b/src/arith_yylex.c index 2c15657..c4458a4 100644 --- a/src/arith_yylex.c +++ b/src/arith_yylex.c @@ -41,6 +41,7 @@ #include "shell.h" #include "memalloc.h" #include "syntax.h" +#include "system.h" #if ARITH_BOR + 11 != ARITH_BORASS || ARITH_ASS + 11 != ARITH_EQ #error Arithmetic tokens are out of order. 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 /* diff --git a/src/mksignames.c b/src/mksignames.c index 03b8742..a832eab 100644 --- a/src/mksignames.c +++ b/src/mksignames.c @@ -382,9 +382,7 @@ write_signames (stream) } int -main (argc, argv) - int argc; - char **argv; +main(int argc, char **argv) { char *stream_name; FILE *stream; diff --git a/src/parser.c b/src/parser.c index 9dd6185..32ed044 100644 --- a/src/parser.c +++ b/src/parser.c @@ -51,6 +51,7 @@ #include "alias.h" #include "show.h" #include "builtins.h" +#include "system.h" #ifndef SMALL #include "myhistedit.h" #endif -- cgit 1.4.1 ollow=1'>1sh/parser.h (unfollow)
Commit message (Collapse)Author
2019-09-23Add Trail of LightningJune McEnroe
2019-09-22Revert "Enable cookies in title"June McEnroe
This reverts commit 279111dda15dd9170e11b9688eb973f2af2e6300.
2019-09-20Enable cookies in titleJune McEnroe
Perhaps this will make it less suspicious to Google. Who knows.
2019-09-16Use sensitivity aliases in TF2June McEnroe
2019-09-16Add The Just CityJune McEnroe
2019-09-12Only GET the final redirect locationJune McEnroe
2019-09-12Consume entire bodyJune McEnroe
Aborting the request and leaving data around may be causing intermittent errors. Just discard the rest of the data.
2019-09-10Add title -v flagJune McEnroe
2019-09-10Use curl error bufferJune McEnroe
2019-09-10Set Accept-Encoding in titleJune McEnroe
Because apparently it's fine for servers to respond with Content-Encoding you didn't ask for, and curl won't decode it if you didn't ask for it.
2019-09-08Set title User-AgentJune McEnroe
Some things don't like you if you don't send one.
2019-09-07Add -x flag to titleJune McEnroe
2019-09-07Ignore SIGPIPE in relayJune McEnroe
Allows restarting consumers safely.
2019-09-07Add A Memory Called EmpireJune McEnroe
2019-09-05Handle lack of Content-TypeJune McEnroe
2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe
Oops, didn't see this.
2019-09-05Decode entities in titlesJune McEnroe
2019-09-05Print title as soon as it's availableJune McEnroe
2019-09-05Use CURL_PREFIX to set flagsJune McEnroe
2019-09-05Add titleJune McEnroe
2019-09-04Add Avorter n'est pas tuerJune McEnroe
2019-08-29Unset executable on shell scriptsJune McEnroe
2019-08-29Add long-missing setopt to bin.7June McEnroe
2019-08-29Add editJune McEnroe