S_IXOTH and S_IXGRP so use of these modes should be conditional.
+2004-05-21 Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
+
+ * ltmain.sh (check_executable): The WIN32 API and MinGW do not support
+ S_IXOTH and S_IXGRP so use of these modes should be conditional.
+
2004-05-21 Gary V. Vaughan <gary@gnu.org>
* tests/tagtrace.test: Forgot to add this file to the repository
return 0;
if ((stat (path, &st) >= 0) &&
- (((st.st_mode & S_IXOTH) == S_IXOTH) ||
+ (
+ /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
+#if defined (S_IXOTH)
+ ((st.st_mode & S_IXOTH) == S_IXOTH) ||
+#endif
+#if defined (S_IXGRP)
((st.st_mode & S_IXGRP) == S_IXGRP) ||
- ((st.st_mode & S_IXUSR) == S_IXUSR)))
+#endif
+ ((st.st_mode & S_IXUSR) == S_IXUSR))
+ )
return 1;
else
return 0;