mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-27 07:26:22 -05:00
fsmonitor-settings: stub in platform-specific incompatibility checking on MacOS
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
This commit is contained in:
committed by
Johannes Schindelin
parent
b29f5e0db4
commit
3cc4e7bfaf
9
compat/fsmonitor/fsm-settings-darwin.c
Normal file
9
compat/fsmonitor/fsm-settings-darwin.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include "cache.h"
|
||||
#include "config.h"
|
||||
#include "repository.h"
|
||||
#include "fsmonitor-settings.h"
|
||||
|
||||
enum fsmonitor_reason fsm_os__incompatible(struct repository *r)
|
||||
{
|
||||
return FSMONITOR_REASON_ZERO;
|
||||
}
|
||||
@@ -159,6 +159,7 @@ ifeq ($(uname_S),Darwin)
|
||||
ifndef NO_PTHREADS
|
||||
ifndef NO_UNIX_SOCKETS
|
||||
FSMONITOR_DAEMON_BACKEND = darwin
|
||||
FSMONITOR_OS_SETTINGS = darwin
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
@@ -295,6 +295,9 @@ if(SUPPORTS_SIMPLE_IPC)
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
add_compile_definitions(HAVE_FSMONITOR_DAEMON_BACKEND)
|
||||
list(APPEND compat_SOURCES compat/fsmonitor/fsm-listen-darwin.c)
|
||||
|
||||
add_compile_definitions(HAVE_FSMONITOR_OS_SETTINGS)
|
||||
list(APPEND compat_SOURCES compat/fsmonitor/fsm-settings-darwin.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user