summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/dir.c b/dir.c
index 98b3bb1..c1db659 100644
--- a/dir.c
+++ b/dir.c
@@ -155,7 +155,11 @@ vms_hash (char *name)
while (*name)
{
unsigned char uc = *name;
+#ifdef HAVE_CASE_INSENSITIVE_FS
h = (h << 4) + (isupper (uc) ? tolower (uc) : uc);
+#else
+ h = (h << 4) + uc;
+#endif
name++;
g = h & 0xf0000000;
if (g)