summaryrefslogtreecommitdiff
path: root/mail/wmbiff/patches/patch-ab
blob: 57720638ac770ee730c01c7648b1fbae65015940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
$NetBSD: patch-ab,v 1.2 2001/07/04 19:04:16 magick Exp $

--- wmbiff.c.orig	Sun Jun 24 20:31:25 2001
+++ wmbiff.c
@@ -18,6 +18,10 @@
 #include <X11/Xlib.h>
 #include <X11/xpm.h>
 
+#ifdef __NetBSD__
+#include <paths.h>
+#endif
+
 #include "../wmgeneral/wmgeneral.h"
 #include "../wmgeneral/misc.h"
 
@@ -77,7 +81,12 @@
 	if ((m = getenv("MAIL")) != NULL) {
 		strcpy(mbox[0].path, m);
 	} else if ((m = getenv("USER")) != NULL) {
+#ifdef  _PATH_MAILDIR
+                 strcpy(mbox[0].path, _PATH_MAILDIR "/");
+#else
+
 		strcpy(mbox[0].path, "/var/mail/");
+#endif
 		strcat(mbox[0].path, m);
 	}