simple-ipc: correct ifdefs when NO_PTHREADS is defined
authorJeff Hostetler <jeffhost@microsoft.com>
Thu, 20 May 2021 18:28:10 +0000 (18:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 May 2021 22:55:00 +0000 (07:55 +0900)
commit6aac70a870fc40482eca943ff0b64003497d69c1
treeccda33257024978db9833175a9d4a32b300d6db2
parent36a7eb68760b7a45ce6b16be300dd04fbe9bd029
simple-ipc: correct ifdefs when NO_PTHREADS is defined

Simple IPC always requires threads (in addition to various
platform-specific IPC support).  Fix the ifdefs in the Makefile
to define SUPPORTS_SIMPLE_IPC when appropriate.

Previously, the Unix version of the code would only verify that
Unix domain sockets were available.

This problem was reported here:
https://lore.kernel.org/git/YKN5lXs4AoK%2FJFTO@coredump.intra.peff.net/T/#m08be8f1942ea8a2c36cfee0e51cdf06489fdeafc

Reported-by: Randall S. Becker <rsbecker@nexbridge.com>
Helped-by: Jeff King <peff@peff.net>
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
compat/simple-ipc/ipc-shared.c
compat/simple-ipc/ipc-unix-socket.c
compat/simple-ipc/ipc-win32.c
contrib/buildsystems/CMakeLists.txt
simple-ipc.h