build: Improve --with-system-libc support.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 24 Aug 2019 17:05:58 +0000 (19:05 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 24 Aug 2019 17:05:58 +0000 (19:05 +0200)
commit58fb0cf764ac47204d22a10c709a4635d8bb5f0a
tree262f22eb1d8ec7dc668deb6adc1dc22ee708ff92
parentfd1109a25f3c9b9eecb34b1478eea1536e2986c3
build: Improve --with-system-libc support.

* build-aux/build-lib.sh: Avoid building libc for --with-system-libc.
Make libmes richer.
build-aux/check-mescc.sh: Enable 50-malloc test.
* include/dirstream.h: Use HAVE_DIRSTREAM_H to cater for non-existing
dirstream.h.
* include/grp.h[SYSTEM_LIBC]: Typo.
* include/mes/lib.h (__brk, __call_at_exit)[SYSTEM_LIBC]: Declare.
* include/stdlib.h (comparison_fn_t)[SYSTEM_LIBC]: Declare.
* include/time.h (mktime): Return time_t.
* lib/posix/isatty.c [SYSTEM_LIBC]: Do not (re)declare termios.
* lib/stub/mktime.c (mktime): Return time_t.
* lib/tests/scaffold/41-ternary.c (main): Remove assumption that
locals are initialized.
* lib/tests/scaffold/70-stdarg.c: Cater for SYSTEM_LIBC.
* lib/tests/setjmp/80-setjmp.c: Declare jmp buf.
* lib/*/*.c: Add missing mes/lib.h, errno.h includes.
include/time.h
lib/stub/getgrgid.c
lib/stub/getgrnam.c
lib/stub/getpgid.c
lib/stub/getpgrp.c
lib/stub/mktime.c
lib/stub/setgrent.c