fsmonitor: rename fsm-settings-darwin.c to fsm-settings-unix.c
The fsmonitor settings logic in fsm-settings-darwin.c is not Darwin-specific and will be reused by the upcoming Linux implementation. Rename it to fsm-settings-unix.c to reflect that it is shared by all Unix platforms. Update the build files (meson.build and CMakeLists.txt) to use FSMONITOR_OS_SETTINGS for fsm-settings, matching the approach already used for fsm-ipc. Based-on-patch-by: Eric DeCosta <edecosta@mathworks.com> Based-on-patch-by: Marziyeh Esipreh <marziyeh.esipreh@gmail.com> Signed-off-by: Paul Tarjan <github@paulisageek.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Paul Tarjan committed
Apr 15, 2026 at 13:27 UTC
7422200bfa1728139962cbf7481f8945add9689e
3 files changed
+2
-2
compat/fsmonitor/fsm-settings-unix.c
renamed
contrib/buildsystems/CMakeLists.txt
+1
-1
@@ -306,7 +306,7 @@ if(SUPPORTS_SIMPLE_IPC)
306
list(APPEND compat_SOURCES compat/fsmonitor/fsm-path-utils-${FSMONITOR_DAEMON_BACKEND}.c)
307
308
add_compile_definitions(HAVE_FSMONITOR_OS_SETTINGS)
309
- list(APPEND compat_SOURCES compat/fsmonitor/fsm-settings-${FSMONITOR_DAEMON_BACKEND}.c)
309
+ list(APPEND compat_SOURCES compat/fsmonitor/fsm-settings-${FSMONITOR_OS_SETTINGS}.c)
310
endif()
311
endif()
312
meson.build
+1
-1
@@ -1338,7 +1338,7 @@ if fsmonitor_backend != ''
1338
'compat/fsmonitor/fsm-ipc-' + fsmonitor_os + '.c',
1339
'compat/fsmonitor/fsm-listen-' + fsmonitor_backend + '.c',
1340
'compat/fsmonitor/fsm-path-utils-' + fsmonitor_backend + '.c',
1341
- 'compat/fsmonitor/fsm-settings-' + fsmonitor_backend + '.c',
1341
+ 'compat/fsmonitor/fsm-settings-' + fsmonitor_os + '.c',
1342
]
1343
endif
1344
build_options_config.set_quoted('FSMONITOR_DAEMON_BACKEND', fsmonitor_backend)