Skip to content

Commit b66f4ed

Browse files
jeffhostetlergitster
authored andcommitted
fsmonitor-settings: stub in macOS-specific incompatibility checking
Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 941f1ce commit b66f4ed

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "cache.h"
2+
#include "config.h"
3+
#include "repository.h"
4+
#include "fsmonitor-settings.h"
5+
6+
enum fsmonitor_reason fsm_os__incompatible(struct repository *r)
7+
{
8+
return FSMONITOR_REASON_OK;
9+
}

config.mak.uname

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ ifeq ($(uname_S),Darwin)
163163
ifndef NO_PTHREADS
164164
ifndef NO_UNIX_SOCKETS
165165
FSMONITOR_DAEMON_BACKEND = darwin
166+
FSMONITOR_OS_SETTINGS = darwin
166167
endif
167168
endif
168169

contrib/buildsystems/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ if(SUPPORTS_SIMPLE_IPC)
295295
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
296296
add_compile_definitions(HAVE_FSMONITOR_DAEMON_BACKEND)
297297
list(APPEND compat_SOURCES compat/fsmonitor/fsm-listen-darwin.c)
298+
299+
add_compile_definitions(HAVE_FSMONITOR_OS_SETTINGS)
300+
list(APPEND compat_SOURCES compat/fsmonitor/fsm-settings-darwin.c)
298301
endif()
299302
endif()
300303

0 commit comments

Comments
 (0)