]> git.marmaro.de Git - mmh/blobdiff - sbr/folder_addmsg.c
Move #include from h/mh.h to source files
[mmh] / sbr / folder_addmsg.c
index 7a4a982692efddf83c9a9ee9c28b26554420f01a..4cc8d6c65a49b739288cb4806f09ac2efc9dee68 100644 (file)
@@ -6,9 +6,11 @@
 ** complete copyright information.
 */
 
+#include <unistd.h>
 #include <h/mh.h>
 #include <fcntl.h>
 #include <errno.h>
+#include <sys/stat.h>
 
 /*
 ** Link message into a folder.  Return the new number
@@ -142,11 +144,6 @@ folder_addmsg(struct msgs **mpp, char *msgfile, int selected,
                } else {
                        linkerr = errno;
 
-#ifdef EISREMOTE
-                       if (linkerr == EISREMOTE)
-                               linkerr = EXDEV;
-#endif /* EISREMOTE */
-
                        /*
                        ** Check if the file in our desired location is
                        ** the same as the source file.  If so, then just