Force libiberty to consider all filesystems as potentially case-sensitive.

Whose idea was this?!

Fixes #14963.
This commit is contained in:
Augustin Cavalier 2020-05-03 15:47:38 -04:00
parent 5720e0c88e
commit 2ebb811a77
2 changed files with 8 additions and 0 deletions

View File

@ -36,17 +36,21 @@ extern "C" {
# ifndef HAVE_DOS_BASED_FILE_SYSTEM # ifndef HAVE_DOS_BASED_FILE_SYSTEM
# define HAVE_DOS_BASED_FILE_SYSTEM 1 # define HAVE_DOS_BASED_FILE_SYSTEM 1
# endif # endif
/*
# ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM # ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM
# define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1 # define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1
# endif # endif
*/
# define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f) # define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f)
# define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c) # define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c)
# define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f) # define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f)
#else /* not DOSish */ #else /* not DOSish */
# if defined(__APPLE__) # if defined(__APPLE__)
/*
# ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM # ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM
# define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1 # define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1
# endif # endif
*/
# endif /* __APPLE__ */ # endif /* __APPLE__ */
# define HAS_DRIVE_SPEC(f) (0) # define HAS_DRIVE_SPEC(f) (0)
# define IS_DIR_SEPARATOR(c) IS_UNIX_DIR_SEPARATOR (c) # define IS_DIR_SEPARATOR(c) IS_UNIX_DIR_SEPARATOR (c)

View File

@ -36,17 +36,21 @@ extern "C" {
# ifndef HAVE_DOS_BASED_FILE_SYSTEM # ifndef HAVE_DOS_BASED_FILE_SYSTEM
# define HAVE_DOS_BASED_FILE_SYSTEM 1 # define HAVE_DOS_BASED_FILE_SYSTEM 1
# endif # endif
/*
# ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM # ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM
# define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1 # define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1
# endif # endif
*/
# define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f) # define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f)
# define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c) # define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c)
# define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f) # define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f)
#else /* not DOSish */ #else /* not DOSish */
# if defined(__APPLE__) # if defined(__APPLE__)
/*
# ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM # ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM
# define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1 # define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1
# endif # endif
*/
# endif /* __APPLE__ */ # endif /* __APPLE__ */
# define HAS_DRIVE_SPEC(f) (0) # define HAS_DRIVE_SPEC(f) (0)
# define IS_DIR_SEPARATOR(c) IS_UNIX_DIR_SEPARATOR (c) # define IS_DIR_SEPARATOR(c) IS_UNIX_DIR_SEPARATOR (c)