summary refs log tree commit diff
path: root/.gitignore
diff options
context:
space:
mode:
authorPeter Korsgaard <peter@korsgaard.com>2018-05-22 18:57:07 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2018-08-29 11:15:57 +0800
commit9000b48966335b0b3d7a3ec1ec8c15b045d59e9d (patch)
treef30a2944c71ef2f9a8f4265ce49f14302b3860c7 /.gitignore
parentbuiltin: Use test_access from NetBSD when faccessat is unavailable (diff)
downloaddash-9000b48966335b0b3d7a3ec1ec8c15b045d59e9d.tar.gz
dash-9000b48966335b0b3d7a3ec1ec8c15b045d59e9d.zip
shell: Don't include config.h for native helpers
config.h contains settings for the cross compiler (most importantly
32/64bit versions of functions), so don't include it when calling the
native compiler to build the helpers.

Otherwise we get build errors like:

/usr/bin/gcc -include ../config.h -DBSD=1 -DSHELL -DIFS_BROKEN  -g -O2 -Wall    -o mkinit mkinit.c
In file included from /usr/include/sys/stat.h:107,
                 from /usr/include/fcntl.h:38,
                 from mkinit.c:50:
/usr/include/bits/stat.h:117: error: redefinition of ‘struct stat’
In file included from /usr/include/fcntl.h:38,
                 from mkinit.c:50:
/usr/include/sys/stat.h:504: error: redefinition of ‘stat’
/usr/include/sys/stat.h:455: note: previous definition of ‘stat’ was here

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
[baruch: apply to Makefile.am; update Peter's email address]
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
9:46:07 -0400'>2018-09-10Set LESSSECURE=1 in man.shJune McEnroe 2018-09-10Add /man commandJune McEnroe 2018-09-10Install man page in chrootJune McEnroe 2018-09-10Install man pageJune McEnroe 2018-09-10Split keys into subsections and document colorsJune McEnroe 2018-09-10Add "blank" lines to chatte.1June McEnroe 2018-09-10Document key bindings in chatte.1June McEnroe 2018-09-08Document slash commands in chatte.1June McEnroe