aix: add stub function to satisfy linker

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.
This commit is contained in:
Ben Noordhuis 2025-10-05 00:11:33 +02:00
parent ee67f3db88
commit 3536000473

View File

@ -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) {