Skip to content

Commit

Permalink
fsmonitor-settings: stub in platform-specific incompatibility checkin…
Browse files Browse the repository at this point in the history
…g on MacOS

Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
  • Loading branch information
jeffhostetler authored and dscho committed Aug 16, 2021
1 parent e3fc6ef commit 7b8c024
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions compat/fsmonitor/fsm-settings-darwin.c
Original file line number Diff line number Diff line change
@@ -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;
}
1 change: 1 addition & 0 deletions config.mak.uname
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ ifeq ($(uname_S),Darwin)
endif
endif
FSMONITOR_DAEMON_BACKEND = darwin
FSMONITOR_OS_SETTINGS = darwin
BASIC_LDFLAGS += -framework CoreServices
endif
ifeq ($(uname_S),SunOS)
Expand Down
3 changes: 3 additions & 0 deletions contrib/buildsystems/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,9 @@ endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
add_compile_definitions(HAVE_FSMONITOR_OS_SETTINGS)
list(APPEND compat_SOURCES compat/fsmonitor/fsm-settings-win32.c)
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_compile_definitions(HAVE_FSMONITOR_OS_SETTINGS)
list(APPEND compat_SOURCES compat/fsmonitor/fsm-settings-darwin.c)
endif()

set(EXE_EXTENSION ${CMAKE_EXECUTABLE_SUFFIX})
Expand Down

0 comments on commit 7b8c024

Please sign in to comment.