Commit 02c6f21a 02c6f21ad6c94a6ff96f55de2403db6e52813060 by Sergey Poznyakoff

Include <paths.h>. Define MU_PATH_MAILDIR.

1 parent 62681c13
...@@ -65,3 +65,25 @@ ...@@ -65,3 +65,25 @@
65 65
66 /* Define to `int' if <sys/types.h> doesn't define. */ 66 /* Define to `int' if <sys/types.h> doesn't define. */
67 #undef ssize_t 67 #undef ssize_t
68
69 #undef MU_CONF_MAILDIR
70
71 @BOTTOM@
72
73 #ifdef HAVE_PATHS_H
74 # include <paths.h>
75 #endif
76
77 #ifndef _PATH_MAILDIR
78 # if (defined(sun) && defined(__svr4__)) || defined(__SVR4)
79 # define _PATH_MAILDIR "/var/mail"
80 # else
81 # define _PATH_MAILDIR "/usr/spool/mail"
82 # endif
83 #endif
84
85 #ifdef MU_CONF_MAILDIR
86 # define MU_PATH_MAILDIR MU_CONF_MAILDIR
87 #else
88 # define MU_PATH_MAILDIR _PATH_MAILDIR "/"
89 #endif
......