[PATCH 0/1] MR4744: server: Fix compile error on FreeBSD/NetBSD.
`F_GETPATH` is currently only implemented on macOS, although NetBSD 10 (not yet released) is also adding it. Note that `libinotify` needs to be installed for this codepath to be active. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56047 -- https://gitlab.winehq.org/wine/wine/-/merge_requests/4744
From: Brendan Shanks <bshanks(a)codeweavers.com> F_GETPATH is currently only implemented on macOS. Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56047 --- server/change.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/change.c b/server/change.c index 00d286ede7a..de9e5d4c314 100644 --- a/server/change.c +++ b/server/change.c @@ -723,7 +723,7 @@ static unsigned int filter_from_inode( struct inode *inode, int is_parent ) static char *get_path_from_fd( int fd, int sz ) { -#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) +#if defined(F_GETPATH) char *ret = malloc( PATH_MAX + sz ); if (!ret) return NULL; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4744
participants (2)
-
Brendan Shanks -
Brendan Shanks (@bshanks)