From 87943b03b32f23b139510f64b3f0b9386b0e71ec Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sun, 5 Oct 2025 18:40:12 +0200 Subject: [PATCH] aix: add stub function to satisfy linker (#4903) Add a stub function for no-ahafs builds. src/unix/core.c won't actually call uv__ahafs_event but the linker still needs to see a symbol. --- src/unix/aix.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/unix/aix.c b/src/unix/aix.c index fdb171e98..1c827b20c 100644 --- a/src/unix/aix.c +++ b/src/unix/aix.c @@ -767,7 +767,11 @@ void uv__ahafs_event(uv_loop_t* loop, uv__io_t* event_watch, unsigned int fflags handle->cb(handle, fname, events, 0); } -#endif +#else /* !HAVE_SYS_AHAFS_EVPRODS_H */ +void uv__ahafs_event(uv_loop_t* loop, uv__io_t* event_watch, unsigned int fflags) { + /* Stub function to satisfy the linker. */ +} +#endif /* HAVE_SYS_AHAFS_EVPRODS_H */ int uv_fs_event_init(uv_loop_t* loop, uv_fs_event_t* handle) {