mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-28 00:01:33 -08:00
Remove DARWIN_OS_CASE_SENSITIVE_FIXME code
It does not appear to be needed (Bug#24441). * etc/PROBLEMS: Remove DARWIN_OS_CASE_SENSITIVE_FIXME stuff. * src/fileio.c (file_name_case_insensitive_p): Remove DARWIN_OS_CASE_SENSITIVE_FIXME code.
This commit is contained in:
parent
075bd64609
commit
b35293dfd0
2 changed files with 0 additions and 31 deletions
10
etc/PROBLEMS
10
etc/PROBLEMS
|
|
@ -2479,16 +2479,6 @@ please call support for your X-server and see if you can get a fix.
|
|||
If you do, please send it to bug-gnu-emacs@gnu.org so we can list it here.
|
||||
|
||||
|
||||
* Runtime problems specific to Mac OS X
|
||||
|
||||
** On Mac OS X, file-name-case-insensitive-p may be unreliable
|
||||
|
||||
The implementation of that function on Mac OS X uses pathconf with the
|
||||
_PC_CASE_SENSITIVE flag. There have been reports that this use of
|
||||
pathconf does not work reliably. If you have a problem, please
|
||||
recompile Emacs with -D DARWIN_OS_CASE_SENSITIVE_FIXME, and file a bug
|
||||
report saying whether this fixed your problem.
|
||||
|
||||
* Build-time problems
|
||||
|
||||
** Configuration
|
||||
|
|
|
|||
21
src/fileio.c
21
src/fileio.c
|
|
@ -2271,27 +2271,6 @@ file_name_case_insensitive_p (const char *filename)
|
|||
return res == 0;
|
||||
#endif
|
||||
|
||||
/* There have been reports that pathconf with _PC_CASE_SENSITIVE
|
||||
does not work reliably on Mac OS X. If you have a problem,
|
||||
please recompile Emacs with -D DARWIN_OS_CASE_SENSITIVE_FIXME=1 or
|
||||
-D DARWIN_OS_CASE_SENSITIVE_FIXME=2, and file a bug report saying
|
||||
whether this fixed your problem. */
|
||||
|
||||
#ifdef DARWIN_OS_CASE_SENSITIVE_FIXME
|
||||
# ifdef VOL_CAP_FMT_CASE_SENSITIVE
|
||||
{
|
||||
struct attrlist alist = {.bitmapcount = ATTR_BIT_MAP_COUNT,
|
||||
.volattr = ATTR_VOL_INFO | ATTR_VOL_CAPABILITIES};
|
||||
struct { uint32_t len; vol_capabilities_attr_t caps; } vcaps
|
||||
__attribute__ ((aligned (4), packed));
|
||||
int i = VOL_CAPABILITIES_FORMAT;
|
||||
if (getattrlist (filename, &alist, &vcaps, sizeof vcaps, 0) == 0
|
||||
&& (vcaps.caps.valid[i] & VOL_CAP_FMT_CASE_SENSITIVE))
|
||||
return ! (vcaps.caps.capabilities[i] & VOL_CAP_FMT_CASE_SENSITIVE);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined CYGWIN || defined DOS_NT
|
||||
return true;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue