Commit 4fcd5107f for imagemagick.org

commit 4fcd5107f68e79520d0f4f134ec91b0d0b90e5e6
Author: Cristy <urban-warrior@imagemagick.org>
Date:   Sat Jul 11 12:31:00 2026 -0400

    define POSIX file type and permission macros

diff --git a/MagickCore/nt-base.c b/MagickCore/nt-base.c
index 838372197..c0aad7574 100644
--- a/MagickCore/nt-base.c
+++ b/MagickCore/nt-base.c
@@ -74,8 +74,33 @@
 #define MAP_FAILED      ((void *)(LONG_PTR)-1)
 #endif
 #define MaxWideByteExtent  100
+
+/* File type macros */
+#ifndef S_IFDIR
+  #define S_IFDIR 0040000 /* directory */
+#endif
+#ifndef S_IFREG
+  #define S_IFREG 0100000 /* regular file */
+#endif
 #ifndef S_IFLNK
-#define S_IFLNK 0120000 /* POSIX value for symbolic link */
+  #define S_IFLNK 0120000 /* symbolic link */
+#endif
+
+/* Permission bits */
+#ifndef S_IRUSR
+  #define S_IRUSR 0000400 /* owner has read permission */
+#endif
+#ifndef S_IRGRP
+  #define S_IRGRP 0000040 /* group has read permission */
+#endif
+#ifndef S_IROTH
+  #define S_IROTH 0000004 /* others have read permission */
+#endif
+#ifndef S_IWGRP
+  #define S_IWGRP 0000020 /* group has write permission */
+#endif
+#ifndef S_IWOTH
+  #define S_IWOTH 0000002 /* others have write permission */
 #endif

 /*