From 244fa5a22854459ae3d7d919b48391c796267a38 Mon Sep 17 00:00:00 2001
From: Cheng Shao <terrorjack@type.dance>
Date: Sun, 18 Aug 2024 05:05:55 +0200
Subject: [PATCH] ghci: fix isMinTTY.h casing for Windows targets

This commit fixes isMinTTY.h casing in isMinTTY.c that's compiled for
Windows targets. While this looks harmless given Windows filesystems
are case-insensitive by default, it does cause a compilation warning
with recent versions of clang, so we might as well fix the casing:

```
driver\ghci\isMinTTY.c:10:10: error:
     warning: non-portable path to file '"isMinTTY.h"'; specified path differs in case from file name on disk [-Wnonportable-include-path]
   |
10 | #include "isMINTTY.h"
   |          ^

 #include "isMINTTY.h"
         ^~~~~~~~~~~~
         "isMinTTY.h"
1 warning generated.
```

(cherry picked from commit 3a145315052d6f66f9682ecff87b522011165d59)
(cherry picked from commit 7bcc3dc6bde08d1a06f702455088b2144de608d5)
---
 driver/utils/isMinTTY.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/driver/utils/isMinTTY.c b/driver/utils/isMinTTY.c
index 3b3ae27bf39..02e31b5fc0d 100644
--- a/driver/utils/isMinTTY.c
+++ b/driver/utils/isMinTTY.c
@@ -7,7 +7,7 @@
 
 #include <stdbool.h>
 #include <windows.h>
-#include "isMINTTY.h"
+#include "isMinTTY.h"
 
 bool isMinTTY() {
   const HANDLE h = GetStdHandle(STD_ERROR_HANDLE);
-- 
GitLab