Move #include from h/mh.h to source files
[mmh] / sbr / folder_addmsg.c
index 7a4a982..4cc8d6c 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