The inotify code uses the Linux-specific /proc/self/fd/<FD> symlinks to translate file descriptors to filesystem paths. On FreeBSD, do this translation using its own sysctl instead.
Try 3 makes the mib variable in fd_path() non-static, and moves the fd_path() functions into the HAVE_SYS_INOTIFY_H block where they should be invisible on MacOS.
Signed-off-by: Damjan Jovanovic damjan.jov@gmail.com --- server/change.c | 132 ++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 111 insertions(+), 21 deletions(-)