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
028b763f
Commit
028b763f
authored
Jul 31, 2009
by
Ken Thomases
Committed by
Alexandre Julliard
Aug 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: For Darwin/Mac OS X, use legacy getdirentries if 64-bit inodes enabled.
Fixes building on Snow Leopard.
parent
083aaca9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
0 deletions
+30
-0
directory.c
dlls/ntdll/directory.c
+30
-0
No files found.
dlls/ntdll/directory.c
View file @
028b763f
...
@@ -1274,6 +1274,30 @@ done:
...
@@ -1274,6 +1274,30 @@ done:
#elif defined HAVE_GETDIRENTRIES
#elif defined HAVE_GETDIRENTRIES
#if _DARWIN_FEATURE_64_BIT_INODE
/* Darwin doesn't provide a version of getdirentries with support for 64-bit
* inodes. When 64-bit inodes are enabled, the getdirentries symbol is mapped
* to _getdirentries_is_not_available_when_64_bit_inodes_are_in_effect so that
* we get link errors if we try to use it. We still need getdirentries, but we
* don't need it to support 64-bit inodes. So, we use the legacy getdirentries
* with 32-bit inodes. We have to be careful to use a corresponding dirent
* structure, too.
*/
int
darwin_legacy_getdirentries
(
int
,
char
*
,
int
,
long
*
)
__asm
(
"_getdirentries"
);
#define getdirentries darwin_legacy_getdirentries
struct
darwin_legacy_dirent
{
__uint32_t
d_ino
;
__uint16_t
d_reclen
;
__uint8_t
d_type
;
__uint8_t
d_namlen
;
char
d_name
[
__DARWIN_MAXNAMLEN
+
1
];
};
#define dirent darwin_legacy_dirent
#endif
/***********************************************************************
/***********************************************************************
* wine_getdirentries
* wine_getdirentries
*
*
...
@@ -1438,6 +1462,12 @@ done:
...
@@ -1438,6 +1462,12 @@ done:
if
(
data
!=
local_buffer
)
RtlFreeHeap
(
GetProcessHeap
(),
0
,
data
);
if
(
data
!=
local_buffer
)
RtlFreeHeap
(
GetProcessHeap
(),
0
,
data
);
return
res
;
return
res
;
}
}
#if _DARWIN_FEATURE_64_BIT_INODE
#undef getdirentries
#undef dirent
#endif
#endif
/* HAVE_GETDIRENTRIES */
#endif
/* HAVE_GETDIRENTRIES */
...
...
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