1999-06-22 16:49:47 +00:00
|
|
|
--- lprps.c.orig Mon Feb 22 06:46:10 1993
|
|
|
|
+++ lprps.c Sat Jun 19 17:55:56 1999
|
1997-01-29 13:11:16 +00:00
|
|
|
@@ -17,6 +17,10 @@
|
|
|
|
#include <syslog.h>
|
|
|
|
#include <errno.h>
|
|
|
|
|
|
|
|
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__)
|
|
|
|
+#include <sys/param.h>
|
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
#ifndef errno
|
|
|
|
extern int errno;
|
|
|
|
#endif
|
|
|
|
@@ -27,7 +31,13 @@
|
|
|
|
#define VOLATILE /* as nothing */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
-#define SENDMAIL "/usr/lib/sendmail"
|
|
|
|
+#ifndef SENDMAIL
|
|
|
|
+# if (defined(BSD) && (BSD >= 199103))
|
|
|
|
+# define SENDMAIL "/usr/sbin/sendmail"
|
|
|
|
+# else
|
|
|
|
+# define SENDMAIL "/usr/lib/sendmail"
|
|
|
|
+# endif
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#define EXIT_SUCCESS 0
|
|
|
|
#define EXIT_REPRINT 1
|
1999-06-22 16:49:47 +00:00
|
|
|
@@ -346,7 +356,9 @@
|
|
|
|
char *strsignal(n)
|
1996-11-25 01:04:58 +00:00
|
|
|
int n;
|
|
|
|
{
|
1997-01-29 13:11:16 +00:00
|
|
|
+# if !(defined(BSD) && (BSD >= 199103))
|
|
|
|
extern char *sys_siglist[];
|
|
|
|
+# endif
|
1996-11-25 01:04:58 +00:00
|
|
|
static char buf[32];
|
|
|
|
if (n >= 0 && n < NSIG)
|
|
|
|
return sys_siglist[n];
|