paths.h may not be available elsewhere
[infodrom/newmail] / folder.c
index 1c63872..9ebceab 100644 (file)
--- a/folder.c
+++ b/folder.c
 #include <sys/types.h>
 #include <pwd.h>
 #include <errno.h>
+#ifdef linux
 #include <paths.h>
+#else
+#define _PATH_MAILDIR "/var/spool/mail"
+#endif
 #include "mbox.h"
 #include "optdefs.h"