41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
$NetBSD: patch-ac,v 1.4 2011/03/06 03:47:27 dholland Exp $
|
|
|
|
--- agent/filter/io.c.orig 2001-03-17 18:31:20.000000000 +0000
|
|
+++ agent/filter/io.c
|
|
@@ -97,6 +97,7 @@
|
|
#include "portable.h"
|
|
#include <sys/types.h>
|
|
#include <stdio.h>
|
|
+#include <stdlib.h>
|
|
#include <errno.h>
|
|
#include <sys/stat.h>
|
|
|
|
@@ -130,6 +131,9 @@
|
|
#ifdef I_SYS_IOCTL
|
|
#include <sys/ioctl.h>
|
|
#endif
|
|
+#ifdef I_SYS_PARAM
|
|
+#include <sys/param.h>
|
|
+#endif
|
|
|
|
/*
|
|
* The following should be defined in <sys/stat.h>.
|
|
@@ -217,9 +221,6 @@ struct pool {
|
|
private int queued = 0; /* True when mail queued safely */
|
|
private struct mail mail; /* Where mail is expected to lie */
|
|
|
|
-extern int errno; /* System call error status */
|
|
-extern char *malloc(); /* Memory allocation */
|
|
-extern char *realloc(); /* Re-allocation of memory pool */
|
|
extern char *logname(); /* User's login name */
|
|
extern char *strsave(); /* Save string somewhere in core */
|
|
extern int loglvl; /* Logging level */
|
|
@@ -724,7 +725,7 @@ char *location;
|
|
*/
|
|
|
|
char **envp; /* Environment pointer */
|
|
-#ifdef UNION_WAIT
|
|
+#if defined(UNION_WAIT) && (!defined(BSD) || BSD < 199306)
|
|
union wait status; /* Waiting status */
|
|
#else
|
|
int status; /* Status from command */
|