$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);
 	}
 
