diff mbox series

[v2,10/12] fsmonitor: enable fsmonitor for Linux

Message ID 07650ecd27b91d49a83427187a846c18424f9ab4.1665783945.git.gitgitgadget@gmail.com (mailing list archive)
State New, archived
Headers show
Series fsmonitor: Implement fsmonitor for Linux | expand

Commit Message

Eric DeCosta Oct. 14, 2022, 9:45 p.m. UTC
From: Eric DeCosta <edecosta@mathworks.com>

Update build to enable fsmonitor for Linux.

Signed-off-by: Eric DeCosta <edecosta@mathworks.com>
---
 config.mak.uname | 9 +++++++++
 1 file changed, 9 insertions(+)
diff mbox series

Patch

diff --git a/config.mak.uname b/config.mak.uname
index 9f716cfba81..d8889f8570a 100644
--- a/config.mak.uname
+++ b/config.mak.uname
@@ -68,6 +68,15 @@  ifeq ($(uname_S),Linux)
 	ifneq ($(findstring .el7.,$(uname_R)),)
 		BASIC_CFLAGS += -std=c99
 	endif
+	# The builtin FSMonitor on Linux builds upon Simple-IPC.  Both require
+	# Unix domain sockets and PThreads.
+	ifndef NO_PTHREADS
+	ifndef NO_UNIX_SOCKETS
+	FSMONITOR_DAEMON_BACKEND = linux
+	FSMONITOR_OS_SETTINGS = linux
+	FSMONITOR_DAEMON_COMMON = unix
+	endif
+	endif
 endif
 ifeq ($(uname_S),GNU/kFreeBSD)
 	HAVE_ALLOCA_H = YesPlease