mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-26 12:56:37 -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
3b767d749c
commit
acdc5cc31f
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;
|
||||
}
|
||||
@@ -163,6 +163,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