aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Brown2016-11-16 18:24:41 -0500
committerKen Brown2016-11-16 18:24:41 -0500
commitcf897a70b70d0f82708be52e1734aac8f68eaf12 (patch)
tree7c02645c8ee7e0e7983fe443d8ddc70b9d648406 /src
parentf63976857b4458bc7712e91d95c04fe2e2ca0106 (diff)
downloademacs-cf897a70b70d0f82708be52e1734aac8f68eaf12.tar.gz
emacs-cf897a70b70d0f82708be52e1734aac8f68eaf12.zip
Unbreak the build on Darwin (Bug#24957)
* src/fileio.c (file_name_case_insensitive_p) [DARWIN_OS]: Fix mistakes in recent commit.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 70799eb2cd1..66a48733a6d 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2282,7 +2282,7 @@ file_name_case_insensitive_p (const char *filename)
2282 { 2282 {
2283 /* This is based on developer.apple.com's getattrlist man page. */ 2283 /* This is based on developer.apple.com's getattrlist man page. */
2284 struct attrlist alist = {.volattr = ATTR_VOL_CAPABILITIES}; 2284 struct attrlist alist = {.volattr = ATTR_VOL_CAPABILITIES};
2285 struct vol_capabilities_attr_t vcaps; 2285 vol_capabilities_attr_t vcaps;
2286 if (getattrlist (filename, &alist, &vcaps, sizeof vcaps, 0) == 0) 2286 if (getattrlist (filename, &alist, &vcaps, sizeof vcaps, 0) == 0)
2287 { 2287 {
2288 if (vcaps.valid[VOL_CAPABILITIES_FORMAT] & VOL_CAP_FMT_CASE_SENSITIVE) 2288 if (vcaps.valid[VOL_CAPABILITIES_FORMAT] & VOL_CAP_FMT_CASE_SENSITIVE)
@@ -2295,7 +2295,7 @@ file_name_case_insensitive_p (const char *filename)
2295 /* The following is based on 2295 /* The following is based on
2296 http://lists.apple.com/archives/darwin-dev/2007/Apr/msg00010.html. */ 2296 http://lists.apple.com/archives/darwin-dev/2007/Apr/msg00010.html. */
2297 struct attrlist alist; 2297 struct attrlist alist;
2298 unsigned char buffer[sizeof (vol_capabilities_attr_t) sizeof (size_t)]; 2298 unsigned char buffer[sizeof (vol_capabilities_attr_t) + sizeof (size_t)];
2299 2299
2300 memset (&alist, 0, sizeof (alist)); 2300 memset (&alist, 0, sizeof (alist));
2301 alist.volattr = ATTR_VOL_CAPABILITIES; 2301 alist.volattr = ATTR_VOL_CAPABILITIES;