There's no need for killpg(). We can use kill() instead.
[mmh] / h / nmh.h
diff --git a/h/nmh.h b/h/nmh.h
index 4ae127d..896786f 100644 (file)
--- a/h/nmh.h
+++ b/h/nmh.h
 #endif
 
 /*
-** we should get this value from sysconf(_SC_NGROUPS_MAX)
-*/
-#ifndef NGROUPS_MAX
-# ifdef NGROUPS
-#  define NGROUPS_MAX NGROUPS
-# else
-#  define NGROUPS_MAX 16
-# endif
-#endif
-
-/*
 ** we should be getting this value from sysconf(_SC_OPEN_MAX)
 */
 #ifndef OPEN_MAX
 
 #include <signal.h>
 
-#define bcmp(b1,b2,length)      memcmp(b1, b2, length)
-#define bcopy(b1,b2,length)     memcpy (b2, b1, length)
-#define bcpy(b1,b2,length)      memcmp (b1, b2, length)
-#define bzero(b,length)         memset (b, 0, length)
-
-#ifdef HAVE_KILLPG
-# define KILLPG(pgrp,sig) killpg(pgrp,sig);
-#else
-# define KILLPG(pgrp,sig) kill((-pgrp),sig);
-#endif
-
 /*
 ** If your stat macros are broken,
 ** we will just undefine them.