Darwin has case-insensitive filesystems
authorJoel Brobecker <brobecker@adacore.com>
Fri, 1 Jul 2011 17:51:05 +0000 (17:51 +0000)
committerJoel Brobecker <brobecke@gcc.gnu.org>
Fri, 1 Jul 2011 17:51:05 +0000 (17:51 +0000)
commit985b34c77a44612cecf8c8a73bfa8224699b9855
tree2101553adc801554eb75138475f104cfda9d278b
parentcb0ad104286a76447490333ce7f94a2f557a5914
Darwin has case-insensitive filesystems

HFS+, the FS on Darwin, is case insensitive. So this patch adjusts
filename_cmp.c to ignore the casing when comparing filenames on Darwin.

include/ChangeLog:

        * filenames.h (HAVE_CASE_INSENSITIVE_FILE_SYSTEM): Define
        on Darwin, as well as on the systems that use a DOS-like
        filesystem.

libiberty/ChangeLog:

        * filename_cmp.c (filename_cmp, filename_ncmp): Add handling of
        HAVE_CASE_INSENSITIVE_FILE_SYSTEM.

From-SVN: r175762
include/ChangeLog
include/filenames.h
libiberty/ChangeLog
libiberty/filename_cmp.c