Re: [PATCH] builtins build with -std=

2024-05-16 Thread Chet Ramey
On 5/16/24 12:55 AM, Grisha Levit wrote: Just moving up the builtins.h include is enough to fix this, but I'm not sure if an explicit config.h include is needed (or clearer). Probably the latter. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita

[PATCH] builtins build with -std=

2024-05-15 Thread Grisha Levit
When building with glibc and an -std= arg in CFLAGS, asort and cat fail to build since sigsetjmp is guarded by _POSIX_C_SOURCE In file included from bashjmp.h:24, from shell.h:25, from examples/loadables/cat.c:30: include/posixjmp.h:29:25: error: unknown type name