Skip to content

Commit fa428f7

Browse files
committed
pacman: enable case-fold checks for the MSYS ABI
1 parent cc6d625 commit fa428f7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

patches/pacman/0005-reject-windows-casefold-collisions.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Based on pacman 7.1.0 commit 5683f8477a0afcc6b331766175a83445b2dcfe89.
1717
#include <sys/stat.h>
1818
#include <fcntl.h>
1919
#include <limits.h>
20-
+#if defined(_WIN32)
20+
+#if defined(__MSYS__) || defined(__CYGWIN__) || defined(_WIN32)
2121
+#include <windows.h>
2222
+#endif
2323

@@ -27,7 +27,7 @@ Based on pacman 7.1.0 commit 5683f8477a0afcc6b331766175a83445b2dcfe89.
2727
int fd;
2828
};
2929

30-
+#if defined(_WIN32)
30+
+#if defined(__MSYS__) || defined(__CYGWIN__) || defined(_WIN32)
3131
+struct casefold_path {
3232
+ const char *utf8;
3333
+ wchar_t *wide;
@@ -120,7 +120,7 @@ Based on pacman 7.1.0 commit 5683f8477a0afcc6b331766175a83445b2dcfe89.
120120
"sorting package filelist for %s\n", pkgfile);
121121

122122
_alpm_filelist_sort(&newpkg->files);
123-
+#if defined(_WIN32)
123+
+#if defined(__MSYS__) || defined(__CYGWIN__) || defined(_WIN32)
124124
+ ret = filelist_has_casefold_collision(handle, &newpkg->files);
125125
+ if(ret < 0) {
126126
+ goto error;

0 commit comments

Comments
 (0)