diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/fileio.c b/src/fileio.c index 17659b692ec..c21056ee6f2 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2271,27 +2271,6 @@ file_name_case_insensitive_p (const char *filename) | |||
| 2271 | return res == 0; | 2271 | return res == 0; |
| 2272 | #endif | 2272 | #endif |
| 2273 | 2273 | ||
| 2274 | /* There have been reports that pathconf with _PC_CASE_SENSITIVE | ||
| 2275 | does not work reliably on Mac OS X. If you have a problem, | ||
| 2276 | please recompile Emacs with -D DARWIN_OS_CASE_SENSITIVE_FIXME=1 or | ||
| 2277 | -D DARWIN_OS_CASE_SENSITIVE_FIXME=2, and file a bug report saying | ||
| 2278 | whether this fixed your problem. */ | ||
| 2279 | |||
| 2280 | #ifdef DARWIN_OS_CASE_SENSITIVE_FIXME | ||
| 2281 | # ifdef VOL_CAP_FMT_CASE_SENSITIVE | ||
| 2282 | { | ||
| 2283 | struct attrlist alist = {.bitmapcount = ATTR_BIT_MAP_COUNT, | ||
| 2284 | .volattr = ATTR_VOL_INFO | ATTR_VOL_CAPABILITIES}; | ||
| 2285 | struct { uint32_t len; vol_capabilities_attr_t caps; } vcaps | ||
| 2286 | __attribute__ ((aligned (4), packed)); | ||
| 2287 | int i = VOL_CAPABILITIES_FORMAT; | ||
| 2288 | if (getattrlist (filename, &alist, &vcaps, sizeof vcaps, 0) == 0 | ||
| 2289 | && (vcaps.caps.valid[i] & VOL_CAP_FMT_CASE_SENSITIVE)) | ||
| 2290 | return ! (vcaps.caps.capabilities[i] & VOL_CAP_FMT_CASE_SENSITIVE); | ||
| 2291 | } | ||
| 2292 | # endif | ||
| 2293 | #endif | ||
| 2294 | |||
| 2295 | #if defined CYGWIN || defined DOS_NT | 2274 | #if defined CYGWIN || defined DOS_NT |
| 2296 | return true; | 2275 | return true; |
| 2297 | #else | 2276 | #else |