Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
6b4eae40
Commit
6b4eae40
authored
Dec 26, 2023
by
Brendan Shanks
Committed by
Alexandre Julliard
Dec 27, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Fix compile error on FreeBSD/NetBSD.
F_GETPATH is currently only implemented on macOS. Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=56047
parent
2c14e077
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
change.c
server/change.c
+6
-6
No files found.
server/change.c
View file @
6b4eae40
...
...
@@ -723,18 +723,18 @@ 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__)
#ifdef linux
char
*
ret
=
malloc
(
32
+
sz
);
if
(
ret
)
sprintf
(
ret
,
"/proc/self/fd/%u"
,
fd
);
return
ret
;
#elif defined(F_GETPATH)
char
*
ret
=
malloc
(
PATH_MAX
+
sz
);
if
(
!
ret
)
return
NULL
;
if
(
!
fcntl
(
fd
,
F_GETPATH
,
ret
))
return
ret
;
free
(
ret
);
return
NULL
;
#elif defined(linux)
char
*
ret
=
malloc
(
32
+
sz
);
if
(
ret
)
sprintf
(
ret
,
"/proc/self/fd/%u"
,
fd
);
return
ret
;
#else
return
NULL
;
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment