зеркало из https://github.com/microsoft/git.git
compat/fsmonitor/fsm-listen-darwin: stub in backend for Darwin
Stub in empty implementation of fsmonitor--daemon backend for Darwin (aka MacOS). Signed-off-by: Jeff Hostetler <jeffhost@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Родитель
62c7367133
Коммит
f67df2556f
|
@ -0,0 +1,20 @@
|
||||||
|
#include "cache.h"
|
||||||
|
#include "fsmonitor.h"
|
||||||
|
#include "fsm-listen.h"
|
||||||
|
|
||||||
|
int fsm_listen__ctor(struct fsmonitor_daemon_state *state)
|
||||||
|
{
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void fsm_listen__dtor(struct fsmonitor_daemon_state *state)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void fsm_listen__stop_async(struct fsmonitor_daemon_state *state)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
void fsm_listen__loop(struct fsmonitor_daemon_state *state)
|
||||||
|
{
|
||||||
|
}
|
|
@ -157,6 +157,16 @@ ifeq ($(uname_S),Darwin)
|
||||||
MSGFMT = /usr/local/opt/gettext/bin/msgfmt
|
MSGFMT = /usr/local/opt/gettext/bin/msgfmt
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# The builtin FSMonitor on MacOS builds upon Simple-IPC. Both require
|
||||||
|
# Unix domain sockets and PThreads.
|
||||||
|
ifndef NO_PTHREADS
|
||||||
|
ifndef NO_UNIX_SOCKETS
|
||||||
|
FSMONITOR_DAEMON_BACKEND = darwin
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
|
BASIC_LDFLAGS += -framework CoreServices
|
||||||
endif
|
endif
|
||||||
ifeq ($(uname_S),SunOS)
|
ifeq ($(uname_S),SunOS)
|
||||||
NEEDS_SOCKET = YesPlease
|
NEEDS_SOCKET = YesPlease
|
||||||
|
|
|
@ -289,6 +289,9 @@ if(SUPPORTS_SIMPLE_IPC)
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
add_compile_definitions(HAVE_FSMONITOR_DAEMON_BACKEND)
|
add_compile_definitions(HAVE_FSMONITOR_DAEMON_BACKEND)
|
||||||
list(APPEND compat_SOURCES compat/fsmonitor/fsm-listen-win32.c)
|
list(APPEND compat_SOURCES compat/fsmonitor/fsm-listen-win32.c)
|
||||||
|
elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
|
add_compile_definitions(HAVE_FSMONITOR_DAEMON_BACKEND)
|
||||||
|
list(APPEND compat_SOURCES compat/fsmonitor/fsm-listen-darwin.c)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче