$NetBSD$

--- bulk_mailer.c.orig	2000-05-24 19:34:33.000000000 +0000
+++ bulk_mailer.c	2007-04-12 13:08:43.000000000 +0000
@@ -101,7 +101,7 @@
 #include "patchlevel.h"
 
 #ifndef PIPECOMMAND
-#define PIPECOMMAND "/usr/lib/sendmail -bs %s"
+#define PIPECOMMAND "/usr/sbin/sendmail -bs %s"
 #endif
 
 #ifndef HAVE_STRERROR
@@ -291,6 +291,7 @@
 #endif
 
 
+#ifndef HAVE_STRNDUP
 /*
  * copy the first 'len' characters of a string into malloc'ed
  * memory, appending a NUL to the copy.
@@ -307,6 +308,7 @@
     result[len] = '\0';
     return result;
 }
+#endif
 
 /*
  * sort by case-folded reversed domain
