opnsense-ports/print/lprps/files/patch-psof.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

26 lines
643 B
C

--- psof.c.orig 1993-02-22 21:46:11.000000000 +0900
+++ psof.c 2013-04-27 23:05:56.000000000 +0900
@@ -11,11 +11,14 @@
#endif
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include <strings.h>
#include <signal.h>
#include <syslog.h>
#include <errno.h>
#include <ctype.h>
+#include <unistd.h>
#ifndef errno
extern int errno;
@@ -216,7 +219,7 @@
if ((status & 0xff) != 0) {
int sig = status & 0x7f;
if (sig < NSIG) {
- extern char *sys_siglist[];
+ /* extern char *sys_siglist[]; */
syslog(LOG_ERR, "%s: %s%s", LPRPS, sys_siglist[sig],
(status & 0x80) ? " (core dumped)" : "");
}