]> code.delx.au - gnu-emacs/blobdiff - lib-src/movemail.c
(VERTICAL_SCROLL_BAR_INSIDE_WIDTH): Add frame as an
[gnu-emacs] / lib-src / movemail.c
index 295b006911bba28683897ae02d9c72afd7fc6397..80f6afd36161f319e041e2d3746dd580f01618a9 100644 (file)
@@ -70,6 +70,13 @@ Boston, MA 02111-1307, USA.  */
 #undef access
 #endif /* MSDOS */
 
+#ifndef DIRECTORY_SEP
+#define DIRECTORY_SEP '/'
+#endif
+#ifndef IS_DIRECTORY_SEP
+#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)
+#endif
+
 #ifdef WINDOWSNT
 #undef access
 #undef unlink
@@ -303,13 +310,13 @@ main (argc, argv)
       if (indesc < 0)
        pfatal_with_name (inname);
 
-#if defined (BSD) || defined (XENIX)
+#if defined (BSD_SYSTEM) || defined (XENIX)
       /* In case movemail is setuid to root, make sure the user can
         read the output file.  */
       /* This is desirable for all systems
         but I don't want to assume all have the umask system call */
       umask (umask (0) & 0333);
-#endif /* BSD or Xenix */
+#endif /* BSD_SYSTEM || XENIX */
       outdesc = open (outname, O_WRONLY | O_CREAT | O_EXCL, 0666);
       if (outdesc < 0)
        pfatal_with_name (outname);
@@ -347,7 +354,7 @@ main (argc, argv)
          }
       }
 
-#ifdef BSD
+#ifdef BSD_SYSTEM
       if (fsync (outdesc) < 0)
        pfatal_and_delete (outname);
 #endif
@@ -581,7 +588,7 @@ popmail (user, outfile, password)
    *      directories have lost mail when over quota because these checks were
    *      not made in previous versions of movemail. */
 
-#ifdef BSD
+#ifdef BSD_SYSTEM
   if (fsync (mbfi) < 0)
     {
       error ("Error in fsync: %s", strerror (errno));