From 508d3a2b0e44dac186738411099d43a7679fbbb2 Mon Sep 17 00:00:00 2001 From: Aleksey Cheusov Date: Tue, 13 Jan 2009 14:54:34 +1100 Subject: [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 --- ChangeLog | 4 ++++ configure.ac | 1 + src/mkbuiltins | 2 +- src/parser.c | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index fe5d984..95e5140 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-12-26 Aleksey Cheusov + + * Fixed build on NetBSD. + 2008-10-17 Herbert Xu * Removed obsolete for loop syntax in manual. diff --git a/configure.ac b/configure.ac index 4d739c2..221b839 100644 --- a/configure.ac +++ b/configure.ac @@ -31,6 +31,7 @@ AC_ARG_ENABLE(glob, AS_HELP_STRING(--enable-glob, [Use glob(3) from libc])) dnl Checks for libraries. dnl Checks for header files. +AC_CHECK_HEADERS(alloca.h) dnl Checks for library functions. AC_CHECK_FUNCS(bsearch getpwnam getrlimit imaxdiv isalpha killpg mempcpy \ 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 +#endif + #include #include "shell.h" -- cgit 1.4.1 nput class='txt' type='search' size='10' name='q' value=''/>
Commit message (Expand)Author
2019-12-23Restrict search to plain-text messagesJune McEnroe
2019-12-23Properly support using drill rather than digJune McEnroe
2019-12-22Document dig requirement in imbox(1)June McEnroe
2019-12-22Add CAVEAT about expecting plain-textJune McEnroe
2019-12-22Quote user, pass and mailboxJune McEnroe
2019-12-22Use sequence numbers rather than UIDsJune McEnroe
2019-12-22Use EXAMINE rather than SELECTJune McEnroe
2019-12-22Export To and CC headersJune McEnroe
2019-12-22Add missing includeJune McEnroe
2019-12-22Export In-Reply-To headersJune McEnroe
2019-12-21Add git-fetch-email to READMEJune McEnroe
2019-12-21Clarify purpose in READMEJune McEnroe
2019-12-21Add READMEJune McEnroe
2019-12-21Add copyright header to git-fetch-emailJune McEnroe
2019-12-21Add git-fetch-email to SEE ALSO of imboxJune McEnroe
2019-12-21Add git-fetch-email wrapperJune McEnroe
2019-12-21Determine host by SRV lookupJune McEnroe
2019-12-21Clean up remaining codeJune McEnroe
2019-12-21Clean up mboxrd codeJune McEnroe
2019-12-21Convert CRLF to LFJune McEnroe
2019-12-21Implement -CFSTJune McEnroe
2019-12-21Rewrite aspirational manualJune McEnroe
2019-12-21Null-terminate read literalsJune McEnroe