mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-16 11:02:37 -05:00
fsmonitor-fs-listen-macos: stub in backend for MacOS
Stub in empty implementation of fsmonitor--daemon backend for MacOS. Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com>
This commit is contained in:
committed by
Johannes Schindelin
parent
1c34c654e9
commit
a496b3eeec
20
compat/fsmonitor/fsmonitor-fs-listen-macos.c
Normal file
20
compat/fsmonitor/fsmonitor-fs-listen-macos.c
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "cache.h"
|
||||
#include "fsmonitor.h"
|
||||
#include "fsmonitor-fs-listen.h"
|
||||
|
||||
int fsmonitor_fs_listen__ctor(struct fsmonitor_daemon_state *state)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
void fsmonitor_fs_listen__dtor(struct fsmonitor_daemon_state *state)
|
||||
{
|
||||
}
|
||||
|
||||
void fsmonitor_fs_listen__stop_async(struct fsmonitor_daemon_state *state)
|
||||
{
|
||||
}
|
||||
|
||||
void fsmonitor_fs_listen__loop(struct fsmonitor_daemon_state *state)
|
||||
{
|
||||
}
|
||||
@@ -147,6 +147,8 @@ ifeq ($(uname_S),Darwin)
|
||||
MSGFMT = /usr/local/opt/gettext/bin/msgfmt
|
||||
endif
|
||||
endif
|
||||
FSMONITOR_DAEMON_BACKEND = macos
|
||||
BASIC_LDFLAGS += -framework CoreServices
|
||||
endif
|
||||
ifeq ($(uname_S),SunOS)
|
||||
NEEDS_SOCKET = YesPlease
|
||||
|
||||
@@ -266,6 +266,9 @@ endif()
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
add_compile_definitions(HAVE_FSMONITOR_DAEMON_BACKEND)
|
||||
list(APPEND compat_SOURCES compat/fsmonitor/fsmonitor-fs-listen-win32.c)
|
||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
add_compile_definitions(HAVE_FSMONITOR_DAEMON_BACKEND)
|
||||
list(APPEND compat_SOURCES compat/fsmonitor/fsmonitor-fs-listen-macos.c)
|
||||
endif()
|
||||
|
||||
set(EXE_EXTENSION ${CMAKE_EXECUTABLE_SUFFIX})
|
||||
|
||||
Reference in New Issue
Block a user