Unbreak the build on Darwin (Bug#24957)
* src/fileio.c (file_name_case_insensitive_p) [DARWIN_OS]: Fix mistakes in recent commit.
This commit is contained in:
parent
f63976857b
commit
cf897a70b7
1 changed files with 2 additions and 2 deletions
|
@ -2282,7 +2282,7 @@ file_name_case_insensitive_p (const char *filename)
|
|||
{
|
||||
/* This is based on developer.apple.com's getattrlist man page. */
|
||||
struct attrlist alist = {.volattr = ATTR_VOL_CAPABILITIES};
|
||||
struct vol_capabilities_attr_t vcaps;
|
||||
vol_capabilities_attr_t vcaps;
|
||||
if (getattrlist (filename, &alist, &vcaps, sizeof vcaps, 0) == 0)
|
||||
{
|
||||
if (vcaps.valid[VOL_CAPABILITIES_FORMAT] & VOL_CAP_FMT_CASE_SENSITIVE)
|
||||
|
@ -2295,7 +2295,7 @@ file_name_case_insensitive_p (const char *filename)
|
|||
/* The following is based on
|
||||
http://lists.apple.com/archives/darwin-dev/2007/Apr/msg00010.html. */
|
||||
struct attrlist alist;
|
||||
unsigned char buffer[sizeof (vol_capabilities_attr_t) sizeof (size_t)];
|
||||
unsigned char buffer[sizeof (vol_capabilities_attr_t) + sizeof (size_t)];
|
||||
|
||||
memset (&alist, 0, sizeof (alist));
|
||||
alist.volattr = ATTR_VOL_CAPABILITIES;
|
||||
|
|
Loading…
Add table
Reference in a new issue