Include <paths.h>. Define MU_PATH_MAILDIR.
Showing
1 changed file
with
22 additions
and
0 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment