copyable by us. */
input_file_statable_p = (fstat (ifd, &st) >= 0);
-#ifndef MSDOS
+#if !defined (MSDOS) || __DJGPP__ > 1
if (out_st.st_mode != 0
&& st.st_dev == out_st.st_dev && st.st_ino == out_st.st_ino)
{
struct stat st;
if (stat (filename, &st) < 0)
return 0;
-#ifdef WINDOWSNT
+#if defined (WINDOWSNT) || (defined (MSDOS) && __DJGPP__ > 1)
return ((st.st_mode & S_IEXEC) != 0);
#else
return (S_ISREG (st.st_mode)
if (stat (XSTRING (absname)->data, &st) < 0)
return Qnil;
-#ifdef MSDOS
+#if defined (MSDOS) && __DJGPP__ < 2
if (check_executable (XSTRING (absname)->data))
st.st_mode |= S_IEXEC;
-#endif /* MSDOS */
+#endif /* MSDOS && __DJGPP__ < 2 */
return make_number (st.st_mode & 07777);
}