diff options
author | Aleksey Cheusov <vle@gmx.net> | 2009-01-13 14:54:34 +1100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2009-01-13 14:57:41 +1100 |
commit | 508d3a2b0e44dac186738411099d43a7679fbbb2 (patch) | |
tree | bbcf9eef7cbf6d10177ce70d4e17afcd2c3c7771 /src | |
parent | [MAN] Removed obsolete for loop syntax (diff) | |
download | dash-508d3a2b0e44dac186738411099d43a7679fbbb2.tar.gz dash-508d3a2b0e44dac186738411099d43a7679fbbb2.zip |
[BUILD] Fixed build on NetBSD
Hi, I propose to apply the following patch for dash. The problem is alloca.h is absent on many platforms including NetBSD I'm running. Also, NetBSD's version of mktemp doesn't work without temporary filename pattern. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | src/mkbuiltins | 2 | ||||
-rw-r--r-- | src/parser.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/mkbuiltins b/src/mkbuiltins index 960c61c..424d59a 100644 --- a/src/mkbuiltins +++ b/src/mkbuiltins @@ -37,7 +37,7 @@ tempfile=tempfile if ! type tempfile > /dev/null 2>&1; then - tempfile=mktemp + tempfile='mktemp /tmp/mkbuiltins.XXXXXX' fi trap 'rm -f $temp $temp2' EXIT diff --git a/src/parser.c b/src/parser.c index e891d31..ab66f30 100644 --- a/src/parser.c +++ b/src/parser.c @@ -32,7 +32,10 @@ * SUCH DAMAGE. */ +#if HAVE_ALLOCA_H #include <alloca.h> +#endif + #include <stdlib.h> #include "shell.h" |