diff options
author | Paul Smith <psmith@gnu.org> | 2023-02-18 13:20:00 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2023-02-19 01:02:16 -0500 |
commit | c85f68c4e952294304e5938acb601e66f5df71a0 (patch) | |
tree | 524f53df01cfd92b2be42457aa7219b18be63872 /src/posixos.c | |
parent | ffa28f3914ff402b3915f75e4fed86ac6fb1449d (diff) | |
download | make-git-c85f68c4e952294304e5938acb601e66f5df71a0.tar.gz |
Allow jobserver style to be forced to "pipe"
Some systems that support mkfifo() don't support the usage that GNU
make wants. Provide a way to force using "pipe" jobserver mode even
when mkfifo() is available.
* src/makeint.h (MK_OS_HURD): Define if we're on Hurd.
(JOBSERVER_USE_FIFO): Define if we have mkfifo() and we're NOT on
Hurd.
* src/main.c (main): Test JOBSERVER_USE_FIFO not HAVE_MKFIFO.
* src/posixos.c (jobserver_setup): Ditto.
* maintMakefile: Create a config check test for forcing "pipe" mode.
* tests/run_make_tests.pl: Show discovered FEATURES in verbose mode.
Diffstat (limited to 'src/posixos.c')
-rw-r--r-- | src/posixos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/posixos.c b/src/posixos.c index 0fe0948a..0cc0a585 100644 --- a/src/posixos.c +++ b/src/posixos.c @@ -147,8 +147,8 @@ jobserver_setup (int slots, const char *style) { int r; -#if HAVE_MKFIFO - if (style == NULL || strcmp (style, "fifo") == 0) +#if JOBSERVER_USE_FIFO + if (!style || strcmp (style, "fifo") == 0) { /* Unfortunately glibc warns about uses of mktemp even though we aren't using it in dangerous way here. So avoid this by generating our own |